2014-03-06 10:19:48 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Icinga\Web\Url;
|
2014-03-08 00:15:51 +01:00
|
|
|
use Icinga\Web\Notification;
|
|
|
|
use Icinga\Authentication\Manager as Auth;
|
2014-03-06 10:19:48 +01:00
|
|
|
|
2014-03-08 00:15:51 +01:00
|
|
|
if (Auth::getInstance()->isAuthenticated()): ?>
|
2014-02-18 19:06:27 +01:00
|
|
|
<div id="header">
|
2014-03-08 00:15:51 +01:00
|
|
|
<ul id="notifications"><?php
|
|
|
|
|
|
|
|
$notifications = Notification::getInstance();
|
|
|
|
if ($notifications->hasMessages()) {
|
|
|
|
foreach ($notifications->getMessages() as $m) {
|
|
|
|
echo '<li class="' . $m->type . '">' . $this->escape($m->message) . '</li>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?></ul>
|
2014-03-04 11:52:37 +01:00
|
|
|
<div id="logo"><a href="<?= $this->href('/dashboard') ?>"><img src="<?= $this->href('img/logo_icinga-inv.png') ?>" class="logo" /></a>
|
|
|
|
</div>
|
2014-02-18 19:06:27 +01:00
|
|
|
</div>
|
2014-02-25 11:13:36 +01:00
|
|
|
<!--
|
|
|
|
<ul class="tabs" >
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle">
|
|
|
|
<?= $this->img('icons/user.png') ?>
|
|
|
|
<?= $this->escape($this->auth()->getUser()->getUsername()) ?>
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="<?= $this->href('/preference') ?>"><?= $this->translate('Preferences'); ?></a></li>
|
|
|
|
<li><a href="<?= $this->href('/authentication/logout'); ?>" title="Logout"><?= $this->translate('Logout'); ?></a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
-->
|
|
|
|
|
2014-02-18 19:06:27 +01:00
|
|
|
<div id="sidebar">
|
|
|
|
<?= $this->layout()->navigation ?>
|
|
|
|
<?php echo $this->render('parts/navigation.phtml') ?>
|
|
|
|
</div>
|
|
|
|
<div id="main">
|
2014-03-06 10:19:48 +01:00
|
|
|
<div id="col1" class="container" data-icinga-url="<?= Url::fromRequest() ?>">
|
2014-02-18 19:06:27 +01:00
|
|
|
<?= $this->render('inline.phtml') ?>
|
2013-08-21 16:11:22 +02:00
|
|
|
</div>
|
2014-02-18 19:06:27 +01:00
|
|
|
<div id="col2" class="container">
|
|
|
|
<ul class="tabs"></ul>
|
2013-06-14 13:51:44 +02:00
|
|
|
</div>
|
2014-02-18 19:06:27 +01:00
|
|
|
<div id="col3" class="container">
|
2013-09-03 18:43:17 +02:00
|
|
|
</div>
|
2014-02-18 19:06:27 +01:00
|
|
|
</div><!-- END of main -->
|
|
|
|
<?php else: ?>
|
|
|
|
<?= $this->render('inline.phtml') ?>
|
|
|
|
<?php endif ?>
|