Introduce menu entry "Configuration"

This commit is contained in:
Johannes Meyer 2015-06-01 16:10:23 +02:00
parent 80e4e419e2
commit c7ce1498bf
3 changed files with 23 additions and 18 deletions

View File

@ -233,50 +233,55 @@ class Menu implements RecursiveIterator
)); ));
$section = $this->add(t('System'), array( $section = $this->add(t('System'), array(
'icon' => 'wrench', 'icon' => 'services',
'priority' => 200, 'priority' => 200,
'renderer' => 'ProblemMenuItemRenderer' 'renderer' => 'ProblemMenuItemRenderer'
)); ));
if (Logger::writesToFile()) {
$section->add(t('Application Log'), array(
'url' => 'list/applicationlog',
'priority' => 300
));
}
$section = $this->add(t('Configuration'), array(
'icon' => 'wrench',
'permission' => 'config/*',
'priority' => 400
));
$section->add(t('User-Management'), array( $section->add(t('User-Management'), array(
'url' => 'user/list', 'url' => 'user/list',
'permission' => 'config/application/*', 'permission' => 'config/application/*',
'priority' => 300 'priority' => 500
)); ));
$section->add(t('UserGroupBackends'), array( $section->add(t('UserGroupBackends'), array(
'url' => 'usergroupbackend/list', 'url' => 'usergroupbackend/list',
'permission' => 'config/application/usergroupbackend/*', 'permission' => 'config/application/usergroupbackend/*',
'priority' => 301 'priority' => 510
)); ));
$section->add(t('Configuration'), array( $section->add(t('Configuration'), array(
'url' => 'config', 'url' => 'config',
'permission' => 'config/application/*', 'permission' => 'config/application/*',
'priority' => 400 'priority' => 600
)); ));
$section->add(t('Modules'), array( $section->add(t('Modules'), array(
'url' => 'config/modules', 'url' => 'config/modules',
'permission' => 'config/modules', 'permission' => 'config/modules',
'priority' => 500 'priority' => 700
)); ));
if (Logger::writesToFile()) {
$section->add(t('Application Log'), array(
'url' => 'list/applicationlog',
'priority' => 600
));
}
$section = $this->add($auth->getUser()->getUsername(), array( $section = $this->add($auth->getUser()->getUsername(), array(
'icon' => 'user', 'icon' => 'user',
'priority' => 700 'priority' => 800
)); ));
$section->add(t('Preferences'), array( $section->add(t('Preferences'), array(
'url' => 'preference', 'url' => 'preference',
'priority' => 701 'priority' => 810
)); ));
$section->add(t('Logout'), array( $section->add(t('Logout'), array(
'url' => 'authentication/logout', 'url' => 'authentication/logout',
'priority' => 800, 'priority' => 890,
'renderer' => 'ForeignMenuItemRenderer' 'renderer' => 'ForeignMenuItemRenderer'
)); ));
} }

View File

@ -7,7 +7,7 @@ $section = $this->menuSection($this->translate('Documentation'), array(
'title' => 'Documentation', 'title' => 'Documentation',
'icon' => 'book', 'icon' => 'book',
'url' => 'doc', 'url' => 'doc',
'priority' => 190 'priority' => 390
)); ));
$section->add('Icinga Web 2', array( $section->add('Icinga Web 2', array(
@ -18,7 +18,7 @@ $section->add('Module documentations', array(
)); ));
$section->add($this->translate('Developer - Style'), array( $section->add($this->translate('Developer - Style'), array(
'url' => 'doc/style/guide', 'url' => 'doc/style/guide',
'priority' => 200, 'priority' => 399
)); ));
$this->provideSearchUrl($this->translate('Doc'), 'doc/search', -10); $this->provideSearchUrl($this->translate('Doc'), 'doc/search', -10);

View File

@ -208,7 +208,7 @@ $section->add($this->translate('Alert Summary'), array(
$section = $this->menuSection($this->translate('System')); $section = $this->menuSection($this->translate('System'));
$section->add($this->translate('Monitoring Health'), array( $section->add($this->translate('Monitoring Health'), array(
'url' => 'monitoring/process/info', 'url' => 'monitoring/process/info',
'priority' => 120, 'priority' => 220,
'renderer' => 'Icinga\Module\Monitoring\Web\Menu\BackendAvailabilityMenuItemRenderer' 'renderer' => 'Icinga\Module\Monitoring\Web\Menu\BackendAvailabilityMenuItemRenderer'
)); ));