dashboard/index: remove logic, dashboard renders

This commit is contained in:
Thomas Gelf 2017-06-21 20:37:26 +02:00
parent f225a4e447
commit 8dbf7ef6df

View File

@ -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>