mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-15 23:08:11 +02:00
dashboard/index: remove logic, dashboard renders
This commit is contained in:
parent
f225a4e447
commit
8dbf7ef6df
@ -11,21 +11,6 @@
|
||||
<?= $this->translate('No dashboard available, you might have not enough permissions') ?>
|
||||
<?php endif ?>
|
||||
<?php foreach ($this->dashboards as $dashboard): ?>
|
||||
<h1><?= $this->escape($dashboard->getTitle()) ?></h1>
|
||||
<?php
|
||||
|
||||
$description = $dashboard->getDescription();
|
||||
|
||||
if ($description !== null): ?>
|
||||
<p><?= nl2br($this->escape($description)) ?></p>
|
||||
<?php endif ?>
|
||||
<ul class="main-actions" data-base-target="_next">
|
||||
<?php foreach ($dashboard->dashlets() as $dashlet): ?>
|
||||
<?php if (! $dashlet->shouldBeShown()) { continue; } ?>
|
||||
<li>
|
||||
<?= $dashlet->render() ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?= $dashboard ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user