+
diff --git a/application/layouts/scripts/parts/menu.phtml b/application/layouts/scripts/parts/menu.phtml
index 7fdd67c23..7955f3251 100644
--- a/application/layouts/scripts/parts/menu.phtml
+++ b/application/layouts/scripts/parts/menu.phtml
@@ -1,38 +1,28 @@
-= $this->sub ? '
' : '' ?>
- items as $item): ?>
- sub) {
- $itemClass .= 'submenu ';
- }
- if ($this->href($this->url) === $this->href($item->getUrl())) {
- $itemClass .= 'active ';
- }
- ?>
- - class="= $itemClass ?>">
- getUrl()): ?>
-
-
- getIcon()) {
- echo $this->img($icon, array('height' => '16px', 'width' => '16px'));
- }
- ?>
- getIconClass()): ?>
-
-
- = $item->getTitle();?>
- getUrl()): ?>
-
-
- hasChildren()) {
- echo $this->partial(
- 'parts/menu.phtml',
- array('items' => $item->getChildren(), 'sub' => true, 'url' => $this->url)
- );
- }
- ?>
-
-
+
+items as $item) {
+
+ printf(
+ ' - %s%s',
+ $this->href($this->url) === $this->href($item->getUrl()) ? ' class="active"' : '',
+ $item->getUrl() ? $this->href($item->getUrl()) : '#',
+ $item->getIcon() ? $this->img(
+ $item->getIcon(),
+ array('height' => '16px', 'width' => '16px')
+ ) . ' ' : '',
+ $item->getTitle()
+ );
+
+ if ($item->hasChildren()) {
+ echo $this->partial(
+ 'parts/menu.phtml',
+ array('items' => $item->getChildren(), 'url' => $this->url)
+ );
+ }
+
+ echo "
\n";
+}
+
+?>
diff --git a/application/layouts/scripts/parts/navigation.phtml b/application/layouts/scripts/parts/navigation.phtml
index f64fb92ed..c7e59b194 100755
--- a/application/layouts/scripts/parts/navigation.phtml
+++ b/application/layouts/scripts/parts/navigation.phtml
@@ -3,15 +3,13 @@
$url = Icinga\Web\Url::fromRequest()->getRelativeUrl();
$menu = Icinga\Web\Menu::fromConfig();
-if ($this->auth()->isAuthenticated()):
+if ($this->auth()->isAuthenticated()) {
echo $this->partial(
'parts/menu.phtml',
array(
'items' => $menu->getChildren(),
- 'sub' => false,
'url' => $url
)
);
-endif;
+}
-?>
\ No newline at end of file
diff --git a/application/layouts/scripts/parts/topbar.phtml b/application/layouts/scripts/parts/topbar.phtml
index 1a4000ff9..e2aa3209c 100755
--- a/application/layouts/scripts/parts/topbar.phtml
+++ b/application/layouts/scripts/parts/topbar.phtml
@@ -1,7 +1,7 @@
-