summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/show/index.phtml
blob: 8278ae498900554fe53832e8157194862b60d204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/** @var \Icinga\Web\View $this */
/** @var \Icinga\Module\Toplevelview\ViewConfig $view */
$tree = $view->getTree();
if (! $this->compact):
?>
<div class="controls">
    <?= $this->tabs ?>
</div>
<?php endif ?>
<div class="content tlv-content">
    <div class="tlv-header">
        <?= $this->badges($tree->getStatus(), false, true) ?>
        <h1><?= $view->getMeta('name') ?></h1>
        <?= $this->partial('show/actions.phtml', $this) ?>
        <div class="last-refresh"><?= $this->timeAgo($tree->getFetchTime()) ?></div>
    </div>
    <div class="tlv-view-tiles">
        <?php foreach ($tree->getChildren() as $topTile): ?>
            <?= $this->tiles($topTile) ?>
        <?php endforeach; ?>
    </div>
</div>