Revert user menu to its original state

refs 
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
library/Icinga/Application
public/css/icinga

View File

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

View File

@ -76,17 +76,6 @@
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 {
background: transparent url('../img/icons/search.png') no-repeat @horizontal-padding + 0.2em center;
background-size: 1em auto;