mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 13:54:26 +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\Authentication\Manager as Auth;
|
||||
|
||||
|
||||
if (Auth::getInstance()->isAuthenticated()): ?>
|
||||
<div id="header">
|
||||
<ul id="notifications"><?php
|
||||
|
||||
$moduleName = $this->layout()->moduleName;
|
||||
if ($moduleName) {
|
||||
$moduleClass = ' icinga-module module-' . $moduleName;
|
||||
} else {
|
||||
$moduleClass = '';
|
||||
}
|
||||
|
||||
$notifications = Notification::getInstance();
|
||||
if ($notifications->hasMessages()) {
|
||||
foreach ($notifications->getMessages() as $m) {
|
||||
@ -35,15 +43,13 @@ if ($notifications->hasMessages()) {
|
||||
-->
|
||||
|
||||
<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() ?>">
|
||||
<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') ?>
|
||||
</div>
|
||||
<div id="col2" class="container">
|
||||
<ul class="tabs"></ul>
|
||||
</div>
|
||||
<div id="col3" class="container">
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user