mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
26bac2d7f6
commit
1662914088
@ -32,109 +32,6 @@ class Menu extends Navigation
|
||||
'icon' => 'dashboard',
|
||||
'priority' => 10
|
||||
]);
|
||||
$this->addItem('system', [
|
||||
'label' => t('System'),
|
||||
'icon' => 'services',
|
||||
'priority' => 700,
|
||||
'renderer' => [
|
||||
'SummaryNavigationItemRenderer',
|
||||
'state' => 'critical'
|
||||
],
|
||||
'children' => [
|
||||
'about' => [
|
||||
'icon' => 'info',
|
||||
'description' => t('Open about page'),
|
||||
'label' => t('About'),
|
||||
'url' => 'about',
|
||||
'priority' => 700
|
||||
],
|
||||
'health' => [
|
||||
'icon' => 'eye',
|
||||
'description' => t('Open health overview'),
|
||||
'label' => t('Health'),
|
||||
'url' => 'health',
|
||||
'priority' => 710,
|
||||
'renderer' => 'HealthNavigationRenderer'
|
||||
],
|
||||
'announcements' => [
|
||||
'icon' => 'megaphone',
|
||||
'description' => t('List announcements'),
|
||||
'label' => t('Announcements'),
|
||||
'url' => 'announcements',
|
||||
'priority' => 720
|
||||
],
|
||||
'sessions' => [
|
||||
'icon' => 'host',
|
||||
'description' => t('List of users who stay logged in'),
|
||||
'label' => t('User Sessions'),
|
||||
'permission' => 'application/sessions',
|
||||
'url' => 'manage-user-devices',
|
||||
'priority' => 730
|
||||
]
|
||||
]
|
||||
]);
|
||||
$this->addItem('configuration', [
|
||||
'label' => t('Configuration'),
|
||||
'icon' => 'wrench',
|
||||
'permission' => 'config/*',
|
||||
'priority' => 800,
|
||||
'children' => [
|
||||
'application' => [
|
||||
'icon' => 'wrench',
|
||||
'description' => t('Open application configuration'),
|
||||
'label' => t('Application'),
|
||||
'url' => 'config',
|
||||
'priority' => 810
|
||||
],
|
||||
'authentication' => [
|
||||
'icon' => 'users',
|
||||
'description' => t('Open access control configuration'),
|
||||
'label' => t('Access Control'),
|
||||
'permission' => 'config/access-control/*',
|
||||
'priority' => 830,
|
||||
'url' => 'role'
|
||||
],
|
||||
'navigation' => [
|
||||
'icon' => 'sitemap',
|
||||
'description' => t('Open shared navigation configuration'),
|
||||
'label' => t('Shared Navigation'),
|
||||
'url' => 'navigation/shared',
|
||||
'permission' => 'config/navigation',
|
||||
'priority' => 840,
|
||||
],
|
||||
'modules' => [
|
||||
'icon' => 'cubes',
|
||||
'description' => t('Open module configuration'),
|
||||
'label' => t('Modules'),
|
||||
'url' => 'config/modules',
|
||||
'permission' => 'config/modules',
|
||||
'priority' => 890
|
||||
]
|
||||
]
|
||||
]);
|
||||
$this->addItem('user', [
|
||||
'cssClass' => 'user-nav-item',
|
||||
'label' => Auth::getInstance()->getUser()->getUsername(),
|
||||
'icon' => 'user',
|
||||
'priority' => 900,
|
||||
'children' => [
|
||||
'account' => [
|
||||
'icon' => 'sliders',
|
||||
'description' => t('Open your account preferences'),
|
||||
'label' => t('My Account'),
|
||||
'priority' => 100,
|
||||
'url' => 'account'
|
||||
],
|
||||
'logout' => [
|
||||
'icon' => 'off',
|
||||
'description' => t('Log out'),
|
||||
'label' => t('Logout'),
|
||||
'priority' => 200,
|
||||
'attributes' => ['target' => '_self'],
|
||||
'url' => 'authentication/logout'
|
||||
]
|
||||
]
|
||||
]);
|
||||
|
||||
if (Logger::writesToFile()) {
|
||||
$this->getItem('system')->addChild($this->createItem('application_log', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user