Fixed missing rank image
authorMarcel Werk <burntime@woltlab.com>
Sun, 8 Mar 2015 13:09:04 +0000 (14:09 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 8 Mar 2015 13:09:04 +0000 (14:09 +0100)
com.woltlab.wcf/templates/dashboardBoxStaffOnlineSidebar.tpl
com.woltlab.wcf/templates/userPanel.tpl
wcfsetup/install/files/acp/templates/userList.tpl

index ecaa9c76fb15141d8863178699144c0adaf07923..745c9be486e95264a5ddd63c037a19338e35e25b 100644 (file)
@@ -5,7 +5,16 @@
                        
                        <div class="sidebarBoxHeadline">
                                <h3><a href="{link controller='User' object=$userOnline}{/link}" class="userLink" data-user-id="{@$userOnline->userID}">{$userOnline->username}</a></h3>
-                               <small>{if MODULE_USER_RANK && $userOnline->getUserTitle()} <span class="badge userTitleBadge{if $userOnline->getRank() && $userOnline->getRank()->cssClassName} {@$userOnline->getRank()->cssClassName}{/if}">{$userOnline->getUserTitle()}</span>{/if}</small>
+                               {if MODULE_USER_RANK}
+                                       <small>
+                                               {if $userOnline->getUserTitle()}
+                                                       <span class="badge userTitleBadge{if $userOnline->getRank() && $userOnline->getRank()->cssClassName} {@$userOnline->getRank()->cssClassName}{/if}">{$userOnline->getUserTitle()}</span>
+                                               {/if}
+                                               {if $userOnline->getRank() && $userOnline->getRank()->rankImage}
+                                                       <span class="userRankImage">{@$userOnline->getRank()->getImage()}</span>
+                                               {/if}
+                                       </small>
+                               {/if}
                        </div>
                </li>
        {/foreach}
index 96bfb5811af3865f17670dfa2b40bbb98361868c..08cf1497b223fea464704c93a11f4addd6c1b835 100644 (file)
                                                        
                                                        <div class="containerHeadline">
                                                                <h3><a href="{link controller='User' object=$__wcf->user}{/link}">{$__wcf->user->username}</a></h3>
-                                                               {if MODULE_USER_RANK && $__wcf->getUserProfileHandler()->getUserTitle()}<p><span class="badge userTitleBadge{if $__wcf->getUserProfileHandler()->getRank() && $__wcf->getUserProfileHandler()->getRank()->cssClassName} {@$__wcf->getUserProfileHandler()->getRank()->cssClassName}{/if}">{$__wcf->getUserProfileHandler()->getUserTitle()}</span></p>{/if}
+                                                               {if MODULE_USER_RANK}
+                                                                       <p>
+                                                                               {if $__wcf->getUserProfileHandler()->getUserTitle()}
+                                                                                       <span class="badge userTitleBadge{if $__wcf->getUserProfileHandler()->getRank() && $__wcf->getUserProfileHandler()->getRank()->cssClassName} {@$__wcf->getUserProfileHandler()->getRank()->cssClassName}{/if}">{$__wcf->getUserProfileHandler()->getUserTitle()}</span>
+                                                                               {/if}
+                                                                               {if $__wcf->getUserProfileHandler()->getRank() && $__wcf->getUserProfileHandler()->getRank()->rankImage}
+                                                                                       <span class="userRankImage">{@$__wcf->getUserProfileHandler()->getRank()->getImage()}</span>
+                                                                               {/if}
+                                                                       </p>
+                                                               {/if}
                                                                
                                                                <ul class="interactiveDropdownUserMenuLinkList">
                                                                        <li><a href="{link controller='User' object=$__wcf->user}{/link}">{lang}wcf.user.myProfile{/lang}</a></li>
index c91867ee7fe2714e7b60c0d768a07cdde5ea5551..b82943671787d15123abe65d8fa85e1df0a04d46 100644 (file)
                                                </td>
                                                <td class="columnID columnUserID">{@$user->userID}</td>
                                                <td class="columnIcon"><p class="framed">{@$user->getAvatar()->getImageTag(24)}</p></td>
-                                               <td class="columnTitle columnUsername">{if $user->editable}<a title="{lang}wcf.acp.user.edit{/lang}" href="{link controller='UserEdit' id=$user->userID}{/link}">{$user->username}</a>{else}{$user->username}{/if}{if MODULE_USER_RANK && $user->getUserTitle()} <span class="badge userTitleBadge{if $user->getRank() && $user->getRank()->cssClassName} {@$user->getRank()->cssClassName}{/if}">{$user->getUserTitle()}</span>{/if}</td>
+                                               <td class="columnTitle columnUsername">{if $user->editable}<a title="{lang}wcf.acp.user.edit{/lang}" href="{link controller='UserEdit' id=$user->userID}{/link}">{$user->username}</a>{else}{$user->username}{/if}{if MODULE_USER_RANK}{if $user->getUserTitle()} <span class="badge userTitleBadge{if $user->getRank() && $user->getRank()->cssClassName} {@$user->getRank()->cssClassName}{/if}">{$user->getUserTitle()}</span>{/if}{if $user->getRank() && $user->getRank()->rankImage} <span class="userRankImage">{@$user->getRank()->getImage()}</span>{/if}{/if}</td>
                                                
                                                {foreach from=$columnHeads key=column item=columnLanguageVariable}
                                                        <td class="column{$column|ucfirst}{if $columnStyling[$column]|isset} {$columnStyling[$column]}{/if}">{if $columnValues[$user->userID][$column]|isset}{@$columnValues[$user->userID][$column]}{/if}</td>