mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-08 08:40:11 +02:00
Web: Add icons and descriptions for second level menu items
This commit is contained in:
parent
b6b87796ed
commit
8ffa110901
@ -302,14 +302,18 @@ class Web extends EmbeddedWeb
|
|||||||
),
|
),
|
||||||
'children' => array(
|
'children' => array(
|
||||||
'about' => array(
|
'about' => array(
|
||||||
'label' => t('About'),
|
'icon' => 'info',
|
||||||
'url' => 'about',
|
'description' => t('Open about page'),
|
||||||
'priority' => 700
|
'label' => t('About'),
|
||||||
|
'url' => 'about',
|
||||||
|
'priority' => 700
|
||||||
),
|
),
|
||||||
'announcements' => array(
|
'announcements' => array(
|
||||||
'label' => t('Announcements'),
|
'icon' => 'megaphone',
|
||||||
'url' => 'announcements',
|
'description' => t('List announcements'),
|
||||||
'priority' => 710
|
'label' => t('Announcements'),
|
||||||
|
'url' => 'announcements',
|
||||||
|
'priority' => 710
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -320,28 +324,36 @@ class Web extends EmbeddedWeb
|
|||||||
'priority' => 800,
|
'priority' => 800,
|
||||||
'children' => array(
|
'children' => array(
|
||||||
'application' => array(
|
'application' => array(
|
||||||
'label' => t('Application'),
|
'icon' => 'wrench',
|
||||||
'url' => 'config/general',
|
'description' => t('Open application configuration'),
|
||||||
'permission' => 'config/application/*',
|
'label' => t('Application'),
|
||||||
'priority' => 810
|
'url' => 'config/general',
|
||||||
|
'permission' => 'config/application/*',
|
||||||
|
'priority' => 810
|
||||||
),
|
),
|
||||||
'authentication' => array(
|
'authentication' => array(
|
||||||
'label' => t('Authentication'),
|
'icon' => 'users',
|
||||||
'permission' => 'config/authentication/*',
|
'description' => t('Open authentication configuration'),
|
||||||
'priority' => 830,
|
'label' => t('Authentication'),
|
||||||
'url' => 'role/list'
|
'permission' => 'config/authentication/*',
|
||||||
|
'priority' => 830,
|
||||||
|
'url' => 'role/list'
|
||||||
),
|
),
|
||||||
'navigation' => array(
|
'navigation' => array(
|
||||||
'label' => t('Shared Navigation'),
|
'icon' => 'sitemap',
|
||||||
'url' => 'navigation/shared',
|
'description' => t('Open shared navigation configuration'),
|
||||||
'permission' => 'config/application/navigation',
|
'label' => t('Shared Navigation'),
|
||||||
'priority' => 840,
|
'url' => 'navigation/shared',
|
||||||
|
'permission' => 'config/application/navigation',
|
||||||
|
'priority' => 840,
|
||||||
),
|
),
|
||||||
'modules' => array(
|
'modules' => array(
|
||||||
'label' => t('Modules'),
|
'icon' => 'cubes',
|
||||||
'url' => 'config/modules',
|
'description' => t('Open module configuration'),
|
||||||
'permission' => 'config/modules',
|
'label' => t('Modules'),
|
||||||
'priority' => 890
|
'url' => 'config/modules',
|
||||||
|
'permission' => 'config/modules',
|
||||||
|
'priority' => 890
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
@ -352,15 +364,19 @@ class Web extends EmbeddedWeb
|
|||||||
'priority' => 900,
|
'priority' => 900,
|
||||||
'children' => array(
|
'children' => array(
|
||||||
'account' => array(
|
'account' => array(
|
||||||
'label' => t('My Account'),
|
'icon' => 'sliders',
|
||||||
'priority' => 100,
|
'description' => t('Open your account preferences'),
|
||||||
'url' => 'account'
|
'label' => t('My Account'),
|
||||||
|
'priority' => 100,
|
||||||
|
'url' => 'account'
|
||||||
),
|
),
|
||||||
'logout' => array(
|
'logout' => array(
|
||||||
'label' => t('Logout'),
|
'icon' => 'off',
|
||||||
'priority' => 200,
|
'description' => t('Log out'),
|
||||||
'attributes' => array('target' => '_self'),
|
'label' => t('Logout'),
|
||||||
'url' => 'authentication/logout'
|
'priority' => 200,
|
||||||
|
'attributes' => array('target' => '_self'),
|
||||||
|
'url' => 'authentication/logout'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -368,10 +384,12 @@ class Web extends EmbeddedWeb
|
|||||||
|
|
||||||
if (Logger::writesToFile()) {
|
if (Logger::writesToFile()) {
|
||||||
$menu['system']['children']['application_log'] = array(
|
$menu['system']['children']['application_log'] = array(
|
||||||
'label' => t('Application Log'),
|
'icon' => 'doc-text',
|
||||||
'url' => 'list/applicationlog',
|
'description' => t(''),
|
||||||
'permission' => 'application/log',
|
'label' => t('Application Log'),
|
||||||
'priority' => 900
|
'url' => 'list/applicationlog',
|
||||||
|
'permission' => 'application/log',
|
||||||
|
'priority' => 900
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user