From b1e3519353d85e3189546e126c3f36f2af1c6722 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Sep 2015 13:55:19 +0200 Subject: [PATCH] Add class NavigationController (WIP) refs #5600 --- .../controllers/NavigationController.php | 52 +++++++++++++++++++ library/Icinga/Application/Web.php | 19 +++++-- 2 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 application/controllers/NavigationController.php diff --git a/application/controllers/NavigationController.php b/application/controllers/NavigationController.php new file mode 100644 index 000000000..f3ba1eaa9 --- /dev/null +++ b/application/controllers/NavigationController.php @@ -0,0 +1,52 @@ +assertPermission('config/application/navigation'); + } + + /** + * Add a navigation item + */ + public function addAction() + { + + } + + /** + * Edit a navigation item + */ + public function editAction() + { + + } + + /** + * Remove a navigation item + */ + public function removeAction() + { + + } +} diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index c57569ce3..06fe56a17 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -255,29 +255,35 @@ class Web extends EmbeddedWeb 'permission' => 'config/application/*', 'priority' => 810 ), + 'navigation' => array( + 'label' => t('Shared Navigation'), + 'url' => 'navigation/shared', + 'permission' => 'config/application/navigation', + 'priority' => 820, + ), 'authentication' => array( 'label' => t('Authentication'), 'url' => 'config/userbackend', 'permission' => 'config/authentication/*', - 'priority' => 820 + 'priority' => 830 ), 'roles' => array( 'label' => t('Roles'), 'url' => 'role/list', 'permission' => 'config/authentication/roles/show', - 'priority' => 830 + 'priority' => 840 ), 'users' => array( 'label' => t('Users'), 'url' => 'user/list', 'permission' => 'config/authentication/users/show', - 'priority' => 840 + 'priority' => 850 ), 'groups' => array( 'label' => t('Usergroups'), 'url' => 'group/list', 'permission' => 'config/authentication/groups/show', - 'priority' => 850 + 'priority' => 860 ), 'modules' => array( 'label' => t('Modules'), @@ -297,6 +303,11 @@ class Web extends EmbeddedWeb 'url' => 'preference', 'priority' => 910 ), + 'navigation' => array( + 'label' => t('Navigation'), + 'url' => 'navigation', + 'priority' => 920 + ), 'logout' => array( 'label' => t('Logout'), 'url' => 'authentication/logout',