summaryrefslogtreecommitdiffstats
path: root/application/views/scripts/events/index-plain.phtml
blob: 55f4c2e61b3e33091f19a459b9fbbfd14680ef9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php /** @var \Icinga\Repository\RepositoryQuery $events */
if (! $events->hasResult()): ?>
<?= $this->translate('No events recorded yet.') ?>
<?php else:
$displayColumns = array_merge(array('host_name', 'program', 'message', 'facility'), $additionalColumns);
foreach ($events as $eventData): /** @var \Icinga\Module\Eventdb\Event $event */ $event = $this->event($eventData); ?>
<?= $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 ($displayColumns as $col): ?>
<?= $this->columnHeader($col, null, true) ?>: <?= htmlspecialchars($event->offsetGet($col)) ?>

<?php endforeach ?>

<?php endforeach; endif; ?>