2014-02-18 19:16:03 +01:00
|
|
|
<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">
|
2014-02-21 11:58:11 +01:00
|
|
|
<input type="text" style="width: 9em; margin: 0.5em;background-color: #999; background-image: url('<?= $this->href('img/icons/search.png') ?>'); background-repeat: no-repeat; background-position: 0.8em center; padding: 0.3em; padding-left: 2.5em; border: none; color: #F5F5F5; text-shadow: -1px 1px 0 #555555;" placeholder="Search..." />
|
2013-06-14 13:51:44 +02:00
|
|
|
<?php
|
2014-02-18 19:23:03 +01:00
|
|
|
// determine current key
|
|
|
|
$url = Icinga\Web\Url::fromRequest()->getRelativeUrl();
|
|
|
|
$menu = Icinga\Web\Menu::fromConfig();
|
2013-06-14 13:51:44 +02:00
|
|
|
|
2014-02-03 17:03:05 +01:00
|
|
|
if ($this->auth()->isAuthenticated()) {
|
2014-01-27 09:45:21 +01:00
|
|
|
echo $this->partial(
|
|
|
|
'parts/menu.phtml',
|
|
|
|
array(
|
|
|
|
'items' => $menu->getChildren(),
|
|
|
|
'url' => $url
|
|
|
|
)
|
|
|
|
);
|
2014-02-03 17:03:05 +01:00
|
|
|
}
|
2014-02-18 19:16:03 +01:00
|
|
|
?>
|
|
|
|
</div>
|