From e07e16d7a17193e6f3903ce98e6a7cd6076a7c49 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Thu, 22 Oct 2015 14:26:53 +0200 Subject: [PATCH] lib: Remove UserNavigationItemRenderer --- library/Icinga/Application/Web.php | 5 +--- .../Renderer/UserNavigationItemRenderer.php | 26 ------------------- 2 files changed, 1 insertion(+), 30 deletions(-) delete mode 100644 library/Icinga/Web/Navigation/Renderer/UserNavigationItemRenderer.php diff --git a/library/Icinga/Application/Web.php b/library/Icinga/Application/Web.php index 24b7e641d..d8aba8757 100644 --- a/library/Icinga/Application/Web.php +++ b/library/Icinga/Application/Web.php @@ -293,10 +293,7 @@ class Web extends EmbeddedWeb 'label' => $this->user->getUsername(), 'icon' => 'user', 'url' => 'preference', - 'priority' => 900, - 'renderer' => array( - 'UserNavigationItemRenderer' - ), + 'priority' => 900 ), 'logout' => array( 'cssClass' => 'user-nav-item', diff --git a/library/Icinga/Web/Navigation/Renderer/UserNavigationItemRenderer.php b/library/Icinga/Web/Navigation/Renderer/UserNavigationItemRenderer.php deleted file mode 100644 index 5168253d2..000000000 --- a/library/Icinga/Web/Navigation/Renderer/UserNavigationItemRenderer.php +++ /dev/null @@ -1,26 +0,0 @@ -'; - } - - public function render(NavigationItem $item = null) - { - return '
' . $this->getAvatar() . parent::render($item) . '
'; - } -}