icingaweb2/application/layouts/scripts/body.phtml

54 lines
1.6 KiB
PHTML
Raw Normal View History

<?php
use Icinga\Web\Url;
use Icinga\Web\Notification;
use Icinga\Authentication\Manager as Auth;
if (Auth::getInstance()->isAuthenticated()): ?>
2014-02-18 19:06:27 +01:00
<div id="header">
<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-09 23:30:37 +01:00
<div id="logo" data-base-target="_main"><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">
<div id="col1" class="container" data-icinga-url="<?= Url::fromRequest() ?>">
2014-02-18 19:06:27 +01:00
<?= $this->render('inline.phtml') ?>
</div>
2014-02-18 19:06:27 +01:00
<div id="col2" class="container">
<ul class="tabs"></ul>
</div>
2014-02-18 19:06:27 +01:00
<div id="col3" class="container">
</div>
2014-02-18 19:06:27 +01:00
</div><!-- END of main -->
<?php else: ?>
<?= $this->render('inline.phtml') ?>
<?php endif ?>