19 lines
550 B
PHTML
Executable File
19 lines
550 B
PHTML
Executable File
<div id="menu-header"><img src="<?= $this->href('img/logo_icinga-inv.png') ?>" style="height: 2em; width:6em; float: left; margin-left: 1.5em; margin-right: 9em; margin-top: 0.5em;" alt="" /></div>
|
|
<div id="menu">
|
|
<?php
|
|
// determine current key
|
|
$url = Icinga\Web\Url::fromRequest()->getRelativeUrl();
|
|
$menu = Icinga\Web\Menu::fromConfig();
|
|
|
|
if ($this->auth()->isAuthenticated()) {
|
|
echo $this->partial(
|
|
'parts/menu.phtml',
|
|
array(
|
|
'items' => $menu->getChildren(),
|
|
'url' => $url
|
|
)
|
|
);
|
|
}
|
|
?>
|
|
</div>
|