icingaweb2/application/layouts/scripts/body.phtml

40 lines
1.2 KiB
PHTML

<?php if (Icinga\Authentication\Manager::getInstance()->isAuthenticated()): ?>
<div id="header">
<ul id="notifications"></ul>
<div id="logo"><a href="<?= $this->href('/dashboard') ?>"><img src="<?= $this->href('img/logo_icinga-inv.png') ?>" class="logo" /></a>
</div>
</div>
<!--
<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>
-->
<div id="sidebar">
<?= $this->layout()->navigation ?>
<?php echo $this->render('parts/navigation.phtml') ?>
</div>
<div id="main">
<div id="col1" class="container">
<?= $this->render('inline.phtml') ?>
</div>
<div id="col2" class="container">
<ul class="tabs"></ul>
</div>
<div id="col3" class="container">
</div>
</div><!-- END of main -->
<?php else: ?>
<?= $this->render('inline.phtml') ?>
<?php endif ?>