Set data(icingaUrl) also in the initial body

This commit is contained in:
Thomas Gelf 2014-03-06 09:19:48 +00:00
parent 5dbf1e48a7
commit e52c2f5fb0
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
<?php if (Icinga\Authentication\Manager::getInstance()->isAuthenticated()): ?>
<?php
use Icinga\Web\Url;
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>
@ -25,7 +29,7 @@
<?php echo $this->render('parts/navigation.phtml') ?>
</div>
<div id="main">
<div id="col1" class="container">
<div id="col1" class="container" data-icinga-url="<?= Url::fromRequest() ?>">
<?= $this->render('inline.phtml') ?>
</div>
<div id="col2" class="container">