diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:47:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 12:47:21 +0000 |
commit | 1ac4a2050c8076eb96e07e83721ebc9db864db94 (patch) | |
tree | da9b32212bf99154450a7668f61a75f65617a9fa /application/views/scripts/show/index.phtml | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-toplevelview-1ac4a2050c8076eb96e07e83721ebc9db864db94.tar.xz icingaweb2-module-toplevelview-1ac4a2050c8076eb96e07e83721ebc9db864db94.zip |
Adding upstream version 0.3.3.upstream/0.3.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'application/views/scripts/show/index.phtml')
-rw-r--r-- | application/views/scripts/show/index.phtml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/application/views/scripts/show/index.phtml b/application/views/scripts/show/index.phtml new file mode 100644 index 0000000..8278ae4 --- /dev/null +++ b/application/views/scripts/show/index.phtml @@ -0,0 +1,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> |