blob: ee9f3cd69bef1eab3a44d9fc14c0c947cd0f4aad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<?php
/** @var array $events */
if (! $this->compact):
?>
<div class="controls">
<?= $this->tabs ?>
</div>
<?php endif ?>
<div class="content">
<table class="common-table event-summary-table table-row-selectable" data-base-target="_next">
<?php $autoClear = false; foreach($events as $eventData):
/** @var \Icinga\Module\Eventdb\Event $event */
$event = $this->event($eventData);
$url = $this->url('eventdb/event', array('id' => $event->id));
?>
<tr href="<?= $url ?>">
<td class="priority-col <?= $event->getPriority() ?> <?= $event->ack ? 'ack' : '' ?>">
<div class="priority-label"><?= strtoupper($event->getPriority()) ?></div>
<div class="event-meta"><span class="timeago" title="<?= $event->created ?>"><?= $this->timeAgo(strtotime($event->created)) ?></span></div>
</td>
<td class="icon-col">
<?= $this->icon($event->getTypeIcon(), $event->getType()) ?>
<?php if ($event->ack) { echo $this->icon('ok', $this->translate('Acknowledged')); } ?>
<?php if ($event->group_autoclear) { $autoClear = true; echo $this->icon('reschedule', $this->translate('Auto-Clear')); } ?>
</td>
<?= $this->column('host_name', $event) ?>
<?= $this->column('program', $event) ?>
<?= $this->column('message', $event) ?>
</tr>
<?php endforeach; ?>
</table>
<?php
foreach ($extensionsHtml as $extensionHtml) {
echo $extensionHtml;
}
?>
<?php if (isset($commentForm)): ?>
<h3><?= $this->translate('Add comment / acknowledge') ?></h3>
<?php if ($autoClear): ?>
<div class="warning">
<?= $this->translate('At least one event is set to auto-clear.') ?>
<?= $this->translate('Please only acknowledge manually, if you know what that means.') ?>
</div>
<?php endif; ?>
<div class="comment-form"><?= $commentForm ?></div>
<?php endif ?>
</div>
|