mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +02:00
Use module name and more whenn rendering the body, drop module-container
This commit is contained in:
parent
757570cdc2
commit
5bd1d97f5e
@ -4,10 +4,18 @@ use Icinga\Web\Url;
|
|||||||
use Icinga\Web\Notification;
|
use Icinga\Web\Notification;
|
||||||
use Icinga\Authentication\Manager as Auth;
|
use Icinga\Authentication\Manager as Auth;
|
||||||
|
|
||||||
|
|
||||||
if (Auth::getInstance()->isAuthenticated()): ?>
|
if (Auth::getInstance()->isAuthenticated()): ?>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<ul id="notifications"><?php
|
<ul id="notifications"><?php
|
||||||
|
|
||||||
|
$moduleName = $this->layout()->moduleName;
|
||||||
|
if ($moduleName) {
|
||||||
|
$moduleClass = ' icinga-module module-' . $moduleName;
|
||||||
|
} else {
|
||||||
|
$moduleClass = '';
|
||||||
|
}
|
||||||
|
|
||||||
$notifications = Notification::getInstance();
|
$notifications = Notification::getInstance();
|
||||||
if ($notifications->hasMessages()) {
|
if ($notifications->hasMessages()) {
|
||||||
foreach ($notifications->getMessages() as $m) {
|
foreach ($notifications->getMessages() as $m) {
|
||||||
@ -35,15 +43,13 @@ if ($notifications->hasMessages()) {
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<?= $this->layout()->navigation ?>
|
|
||||||
<?php echo $this->render('parts/navigation.phtml') ?>
|
<?php echo $this->render('parts/navigation.phtml') ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div id="col1" class="container" data-icinga-url="<?= Url::fromRequest() ?>">
|
<div id="col1" class="container<?= $moduleClass ?>"<?php if ($moduleName): ?> data-icinga-module="<?= $moduleName ?>" <?php endif ?> data-icinga-url="<?= Url::fromRequest() ?>" style="display: block">
|
||||||
<?= $this->render('inline.phtml') ?>
|
<?= $this->render('inline.phtml') ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="col2" class="container">
|
<div id="col2" class="container">
|
||||||
<ul class="tabs"></ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div id="col3" class="container">
|
<div id="col3" class="container">
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user