[icinga-checkins] icinga.org: icinga-web/mhein/default: * Removed home, Portal in Menu ( #fixes 793)

git at icinga.org git at icinga.org
Wed Sep 22 17:22:33 CEST 2010


Module: icinga-web
Branch: mhein/default
Commit: cc93e17ddd31d4126920a367b38b923b68a010fb
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=cc93e17ddd31d4126920a367b38b923b68a010fb

Author: jmosshammer <jmosshammer at ws-jmosshammer.(none)>
Date:   Thu Sep 16 17:42:43 2010 +0200

* Removed home, Portal in Menu (#fixes 793)

---

 .../Web/lib/menu/IcingaMenuExtender.class.php      |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/app/modules/Web/lib/menu/IcingaMenuExtender.class.php b/app/modules/Web/lib/menu/IcingaMenuExtender.class.php
index 6b74798..a541670 100755
--- a/app/modules/Web/lib/menu/IcingaMenuExtender.class.php
+++ b/app/modules/Web/lib/menu/IcingaMenuExtender.class.php
@@ -18,9 +18,10 @@ class IcingaMenuExtender extends AppKitEventHandler implements AppKitEventHandle
 		
 		if ($user->hasCredential('icinga.user')) {
 			
-				$icinga_base = AppKitNavItem::create('icinga', 'icinga')
+				$icinga_base = AppKitNavItem::create('icinga.portalView', 'icinga.portalView')
 				->setCaption('Monitoring')
-				->addAttributes('extjs-iconcls', 'icinga-icon-dot');
+				->addAttributes('extjs-iconcls', 'icinga-icon-dot')
+				->setJsHandler("AppKit.changeLocation.createDelegate(null,['". AgaviContext::getInstance()->getRouting()->gen('icinga.portalView') ."'])");
 			
 				// Throws exception if the admin is not there ...
 				if ($nav->getNavItemByName('appkit.admin')) {
@@ -31,10 +32,6 @@ class IcingaMenuExtender extends AppKitEventHandler implements AppKitEventHandle
 					$icinga = $nav->getContainer()->addItem($icinga_base);
 				}
 				
-				$icinga->addSubItem(AppKitNavItem::create('icinga.portalView', 'icinga.portalView')
-					->setCaption('Portal')
-					->addAttributes('extjs-iconcls', 'icinga-icon-application-cascade')
-				);
 		}
 		
 		// Adding some help





More information about the icinga-checkins mailing list