2013-06-14 13:51:44 +02:00
|
|
|
<?php
|
2014-02-25 11:13:36 +01:00
|
|
|
|
2014-03-04 11:52:37 +01:00
|
|
|
use Icinga\Web\Url;
|
|
|
|
use Icinga\Web\Menu;
|
2014-07-03 15:46:46 +02:00
|
|
|
use Icinga\Web\MenuRenderer;
|
2014-09-04 16:31:10 +02:00
|
|
|
use Icinga\Web\Widget\SearchDashboard;
|
2014-03-04 11:52:37 +01:00
|
|
|
|
2014-02-25 11:13:36 +01:00
|
|
|
// Don't render a menu for unauthenticated users unless menu is auth aware
|
|
|
|
if (! $this->auth()->isAuthenticated()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2014-09-08 15:21:14 +02:00
|
|
|
<div
|
2014-09-09 15:33:42 +02:00
|
|
|
id="menu" data-last-update="<?= (time() - 14) ?>000" data-base-target="_main" class="container" data-icinga-url="<?=$this->href('layout/menu');?>"
|
2014-09-09 13:57:48 +02:00
|
|
|
data-icinga-refresh="15"
|
2014-09-08 15:21:14 +02:00
|
|
|
>
|
2014-11-20 12:08:50 +01:00
|
|
|
<? if (SearchDashboard::search('dummy')->getPane('search')->hasDashlets()): ?>
|
2014-09-08 15:21:14 +02:00
|
|
|
<form action="<?= $this->href('search') ?>" method="get" role="search">
|
|
|
|
<input type="text" name="q" class="search autofocus" placeholder="<?= $this->translate('Search...') ?>"
|
|
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />
|
|
|
|
</form>
|
2014-09-04 16:31:10 +02:00
|
|
|
<? endif; ?>
|
2014-09-08 15:21:14 +02:00
|
|
|
<?= new MenuRenderer(Menu::load(), Url::fromRequest()->without('renderLayout')->getRelativeUrl()); ?>
|
2014-02-18 19:16:03 +01:00
|
|
|
</div>
|