diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index 36c413424..bbde10f8a 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -13,23 +13,13 @@ $viewHelper = $this->getHelper('MonitoringState');
Comment Id | -Type | -Host | -Service | -Entry Time | -Author | -Comment | -Persistent | -Expires | -||
---|---|---|---|---|---|---|---|---|---|---|
comment_objecttype_id === '1'): ?> - {{{ICON_HOST}}} + comment_objecttype_id === '2'): ?> - {{{ICON_SERVICE}}} + | +- = $comment->comment_id; ?> + + comment_type) { + case 'flapping': + $icon = 'icinga-icon-flapping'; + $tooltip = 'Comment is caused by a flapping host or service.'; + break; + } + ?> + + | + +- = $comment->comment_type; ?> - | -- - = $comment->host_name; ?> - - | -- service_name): ?> - - = $comment->service_name ?> + service_name): ?> + + = $comment->service_name ?> + + on + + + + + = $comment->host_name; ?> - - - | - = $dateHelper->formatDateTime($comment->comment_timestamp); ?> + = date('d.m. H:i', $comment->comment_timestamp); ?> | = $comment->comment_author; ?> |
-
- = $comment->comment_data; ?>
-
+
+ = $comment->comment_data; ?>
+
|
= ($comment->comment_is_persistent === '1') ? 'Yes' : 'No'; ?> |
- =
+
+ expires = ($comment->comment_expiration_timestamp) ? - $dateHelper->formatDateTime($comment->comment_expiration_timestamp) : + 'at ' . date('d.m H:i', $comment->comment_expiration_timestamp) : 'Never'; - ?> + ?> + |
getHelper('MonitoringState'); ); ?> | +
@@ -130,5 +130,8 @@ $viewHelper = $this->getHelper('MonitoringState'); |