Overhauled ACP user menu
authorAlexander Ebert <ebert@woltlab.com>
Sun, 1 May 2016 13:08:45 +0000 (15:08 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 1 May 2016 13:08:50 +0000 (15:08 +0200)
wcfsetup/install/files/acp/templates/pageHeaderUser.tpl

index 162f4db5066825423f17ac1d2fc4ed567c8d7527..9fc436451d3dfcfce933c52edf0574f0f1ccd9bd 100644 (file)
@@ -3,17 +3,9 @@
                {if $__wcf->user->userID}
                        {if PACKAGE_ID}
                                <li id="userMenu" class="dropdown">
-                                       <a class="dropdownToggle" data-toggle="userMenu">{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}</a>
+                                       <a href="#" class="dropdownToggle jsTooltip" title="{$__wcf->user->username}">{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}</a>
                                        <ul class="dropdownMenu" data-dropdown-alignment-horizontal="right">
-                                               {* TODO: this was copied straight from the frontend *}
-                                               <li><a href="{link controller='User' object=$__wcf->user forceFrontend=true}{/link}" class="box32">
-                                                               <div>{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}</div>
-                                                               
-                                                               <div class="containerHeadline">
-                                                                       <h3>{$__wcf->user->username}</h3>
-                                                                       <small>{lang}wcf.user.myProfile{/lang}</small>
-                                                               </div>
-                                                       </a></li>
+                                               <li><a href="{link controller='User' object=$__wcf->user forceFrontend=true}{/link}">{lang}wcf.user.myProfile{/lang}</small></a></li>
                                                {if $__wcf->getUserProfileHandler()->canEditOwnProfile()}<li><a href="{link controller='User' object=$__wcf->user forceFrontend=true}editOnInit=true#about{/link}">{lang}wcf.user.editProfile{/lang}</a></li>{/if}
                                                <li><a href="{link controller='Settings' forceFrontend=true}{/link}">{lang}wcf.user.menu.settings{/lang}</a></li>
                                                
@@ -25,7 +17,7 @@
                                </li>
                                
                                <li id="jumpToPage" class="dropdown">
-                                       <a href="{link forceFrontend=true}{/link}" class="dropdownToggle" data-toggle="jumpToPage"><span class="icon icon32 fa-home"></span> <span>{lang}wcf.global.jumpToPage{/lang}</span></a>
+                                       <a href="{link forceFrontend=true}{/link}" class="dropdownToggle jsTooltip" title="{lang}wcf.global.jumpToPage{/lang}"><span class="icon icon32 fa-home"></span></a>
                                        <ul class="dropdownMenu" data-dropdown-alignment-horizontal="right">
                                                {foreach from=$__wcf->getFrontendMenu()->getMenuItemNodeList() item=_menuItem}
                                                        {if !$_menuItem->getMenuItem()->parentItemID && $_menuItem->getMenuItem()->getPage()}
                                
                                {if $__wcf->session->getPermission('admin.configuration.package.canUpdatePackage') && $__wcf->getAvailableUpdates()}
                                        <li>
-                                               <a href="{link controller='PackageUpdate'}{/link}"><span class="icon icon32 fa-refresh"></span> <span>{lang}wcf.acp.package.updates{/lang}</span> <span class="badge badgeUpdate">{#$__wcf->getAvailableUpdates()}</span></a>
+                                               <a href="{link controller='PackageUpdate'}{/link}" class="jsTooltip" title="{lang}wcf.acp.package.updates{/lang}"><span class="icon icon32 fa-refresh"></span> <span class="badge badgeUpdate">{#$__wcf->getAvailableUpdates()}</span></a>
                                        </li>
                                {/if}
                        {/if}
                        
                        <li id="woltlab" class="dropdown">
-                               <a class="dropdownToggle" data-toggle="woltlab"><span class="icon icon32 fa-info"></span> <span>WoltLab&reg;</span></a>
+                               <a href="#" class="dropdownToggle jsTooltip" title="WoltLab&reg;"><span class="icon icon32 fa-info"></span></a>
                                
                                <ul class="dropdownMenu" data-dropdown-alignment-horizontal="right">
                                        <li><a class="externalURL" href="{@$__wcf->getPath()}acp/dereferrer.php?url={"https://www.woltlab.com"|rawurlencode}"{if EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}>{lang}wcf.acp.index.woltlab.website{/lang}</a></li>
@@ -56,4 +48,4 @@
                
                {event name='menuItems'}
        </ul>
-</nav>
\ No newline at end of file
+</nav>