Revert user menu to its original state

refs #5543
This commit is contained in:
Eric Lippmann 2015-11-10 14:05:48 +01:00
parent 8d072bcb98
commit 92e3895c94
2 changed files with 14 additions and 24 deletions

View File

@ -292,19 +292,20 @@ class Web extends EmbeddedWeb
'cssClass' => 'user-nav-item', 'cssClass' => 'user-nav-item',
'label' => $this->user->getUsername(), 'label' => $this->user->getUsername(),
'icon' => 'user', 'icon' => 'user',
'url' => 'preference', 'priority' => 900,
'priority' => 900 'children' => array(
), 'preferences' => array(
'logout' => array( 'label' => t('Preferences'),
'cssClass' => 'user-nav-item', 'priority' => 100,
'label' => t('Logout'), 'url' => 'preference'
'icon' => 'starttime', ),
'priority' => 990, 'logout' => array(
'renderer' => array( 'label' => t('Logout'),
'LogoutNavigationItemRenderer', 'priority' => 200,
'target' => '_self' 'target' => '_self',
), 'url' => 'authentication/logout'
'url' => 'authentication/logout' )
)
) )
); );

View File

@ -76,17 +76,6 @@
width: 1em; width: 1em;
} }
#menu .user-nav-item {
background-color: @gray;
color: @text-color-inverted;
> a:focus,
> a:hover {
background-color: @text-color-inverted;
color: @gray;
}
}
#menu input.search { #menu input.search {
background: transparent url('../img/icons/search.png') no-repeat @horizontal-padding + 0.2em center; background: transparent url('../img/icons/search.png') no-repeat @horizontal-padding + 0.2em center;
background-size: 1em auto; background-size: 1em auto;