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,20 +292,21 @@ 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(
'label' => t('Preferences'),
'priority' => 100,
'url' => 'preference'
), ),
'logout' => array( 'logout' => array(
'cssClass' => 'user-nav-item',
'label' => t('Logout'), 'label' => t('Logout'),
'icon' => 'starttime', 'priority' => 200,
'priority' => 990, 'target' => '_self',
'renderer' => array(
'LogoutNavigationItemRenderer',
'target' => '_self'
),
'url' => 'authentication/logout' 'url' => 'authentication/logout'
) )
)
)
); );
if (Logger::writesToFile()) { if (Logger::writesToFile()) {

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;