From a9b77c01caef9ae7a2c84e2333d28ceb028cf4d3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:43:29 +0200 Subject: Adding upstream version 1.3.0. Signed-off-by: Daniel Baumann --- application/views/scripts/event/index-plain.phtml | 62 ++++++++ application/views/scripts/event/index.phtml | 174 ++++++++++++++++++++++ 2 files changed, 236 insertions(+) create mode 100644 application/views/scripts/event/index-plain.phtml create mode 100644 application/views/scripts/event/index.phtml (limited to 'application/views/scripts/event') diff --git a/application/views/scripts/event/index-plain.phtml b/application/views/scripts/event/index-plain.phtml new file mode 100644 index 0000000..5b6ea8d --- /dev/null +++ b/application/views/scripts/event/index-plain.phtml @@ -0,0 +1,62 @@ +translate('Comment'), + $this->translate('Acknowledgement'), + $this->translate('Revocation'), +); + +$displayColumns = array_merge(array('program', 'message', 'facility'), $additionalColumns); +?> +translate('Timestamp') ?>: created ?> + +translate('Priority') ?>: getPriority()) ?> +ack ? sprintf(' (%s)', $this->translate('Acknowledged')) : '' ?> + +translate('Type') ?>: getType() ?> + + +columnHeader($col, null, true) ?>: offsetGet($col)) ?> + + + +hasResult()): ?> +[ translate('Comments') ?> ] + + +type] ?>: created ?> + +translate('User') ?>: user ?> + +translate('Message') ?>: message ?> + + + + + +hasResult()): ?> +[ translate('Grouped Events') ?> ] + +event($groupedEventData); +?> +translate('Timestamp') ?>: created ?> + +translate('Priority') ?>: getPriority()) ?> +ack ? sprintf(' (%s)', $this->translate('Acknowledged')) : '' ?> + +translate('Type') ?>: getType() ?> + + +columnHeader($col, null, true) ?>: offsetGet($col)) ?> + + + + + + diff --git a/application/views/scripts/event/index.phtml b/application/views/scripts/event/index.phtml new file mode 100644 index 0000000..83dcf01 --- /dev/null +++ b/application/views/scripts/event/index.phtml @@ -0,0 +1,174 @@ +icon('comment', $this->translate('Comment')), + $this->icon('ok', $this->translate('Acknowledgement')), + $this->icon('cancel', $this->translate('Revocation')) +); + +if (! $this->compact): ?> +
+ tabs ?> +
+ +
+ + + + + column('host_name', $event, array('selectable')) ?> + + + column('host_address', $event, array('selectable')) ?> + +
+
getPriority()) ?>
+
timeAgo(strtotime($event->created)) ?>
+
+ icon($event->getTypeIcon(), $event->getType()) ?> + ack) { echo $this->icon('ok', $this->translate('Acknowledged')); } ?> + group_autoclear) { echo $this->icon('reschedule', $this->translate('Auto-Clear')); } ?> +
+

translate('Details') ?>

+ + + + columnHeader($column) ?> + column($column, $event) ?> + + +
+ message): ?> +

translate('Message') ?>

+
eventMessage($event->message) ?>
+ + + + +

translate('Actions') ?>

+ + + + + + + + + + +
translate('Other events for') ?>qlink( + $this->translate('Host'), + 'eventdb/events', + array('host_name' => $event->host_name), + array( + 'icon' => 'search', + 'class' => 'action-link' + ) + ) ?> + program): ?> + qlink( + $this->translate('Program'), + 'eventdb/events', + array( + 'program' => $event->program, + ), + array( + 'icon' => 'search', + 'class' => 'action-link' + ) + ) ?> + qlink( + $this->translate('Program and Host'), + 'eventdb/events', + array( + 'host_name' => $event->host_name, + 'program' => $event->program, + ), + array( + 'icon' => 'search', + 'class' => 'action-link' + ) + ) ?> + +
translate('Monitoring') ?> + qlink( + $this->translate('Host service status'), + 'eventdb/event/host', + array('host' => $event->host_name), + array( + 'icon' => 'search', + 'class' => 'action-link' + ) + ) ?> +
+ + +

translate('Add comment / acknowledge') ?>

+ group_autoclear): ?> +
+ translate('This event is set to auto-clear.') ?> + translate('Please only acknowledge manually, if you know what that means.') ?> +
+ +
+ + +

translate('Comments') ?>

+ hasResult()): ?> +

translate('No comments recorded for this event yet.') ?>

+ + + + + + + + + + + + +
timeAgo(strtotime($comment->created)) ?>type] ?>escape($comment->user) ?>escape($comment->message) ?>
+ + + hasResult()): ?> +

translate('Grouped Events') ?>

+ + + event($groupedEventData); + ?> + + + + column('host_name', $groupedEvent) ?> + column('program', $groupedEvent) ?> + column('message', $groupedEvent) ?> + + + +
+
getPriority()) ?>
+
timeAgo(strtotime($groupedEvent->created)) ?>
+
+ icon($groupedEvent->getTypeIcon(), $groupedEvent->getType()) ?> + ack) { echo $this->icon('ok', $this->translate('Acknowledged')); } ?> + group_autoclear) { $autoClear = true; echo $this->icon('reschedule', $this->translate('Auto-Clear')); } ?> +
+ + +
+ -- cgit v1.2.3