summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/events/details-plain.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/scripts/events/details-plain.phtml')
-rw-r--r--application/views/scripts/events/details-plain.phtml18
1 files changed, 18 insertions, 0 deletions
diff --git a/application/views/scripts/events/details-plain.phtml b/application/views/scripts/events/details-plain.phtml
new file mode 100644
index 0000000..d5eb724
--- /dev/null
+++ b/application/views/scripts/events/details-plain.phtml
@@ -0,0 +1,18 @@
+<?php foreach($events as $eventData):
+ /** @var \Icinga\Module\Eventdb\Event $event */
+ $event = $this->event($eventData);
+ $url = $this->url('eventdb/event', array('id' => $event->id));
+?>
+<?= $this->translate('Timestamp') ?>: <?= $event->created ?>
+
+<?= $this->translate('Priority') ?>: <?= strtoupper($event->getPriority()) ?>
+<?= $event->ack ? sprintf(' (%s)', $this->translate('Acknowledged')) : '' ?>
+
+<?= $this->translate('Type') ?>: <?= $event->getType() ?>
+
+<?php foreach (array('host_name', 'program', 'message') as $col): ?>
+<?= $this->columnHeader($col, null, true) ?>: <?= htmlspecialchars($event->offsetGet($col)) ?>
+
+<?php endforeach ?>
+
+<?php endforeach ?>