summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/show/tree.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/show/tree.phtml')
-rw-r--r--application/views/scripts/show/tree.phtml22
1 files changed, 22 insertions, 0 deletions
diff --git a/application/views/scripts/show/tree.phtml b/application/views/scripts/show/tree.phtml
new file mode 100644
index 0000000..52e4f80
--- /dev/null
+++ b/application/views/scripts/show/tree.phtml
@@ -0,0 +1,22 @@
+<?php
+/** @var \Icinga\Module\Toplevelview\ViewConfig $view */
+/** @var \Icinga\Module\Toplevelview\Tree\TLVTreeNode $node */
+
+$tree = $view->getTree();
+
+if (! $this->compact):
+?>
+<div class="controls">
+ <?= $this->tabs ?>
+</div>
+<?php endif ?>
+<div class="content tlv-view-tree">
+ <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>
+ <?= $this->breadcrumb($node->getBreadCrumb(), $view->getName()) ?>
+ <?= $this->tree($node) ?>
+</div>