diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index e0413a32a..601b8cab4 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -288,7 +288,8 @@ class Monitoring_ListController extends MonitoringController 'comment_timestamp' => 'Comment Timestamp', 'host_service' => 'Host and Service', 'comment_id' => 'Comment Id', - 'comment_expires' => 'Expiration Timestamp' + 'comment_expires' => 'Expiration Timestamp', + 'comment_type' => 'Comment Type' ) ); $this->handleFormatRequest($query); diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index bbde10f8a..964c4b1a6 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -16,7 +16,6 @@ $viewHelper = $this->getHelper('MonitoringState'); = $this->sortControl->render($this); ?> - = $this->paginationControl($comments, null, null, array('preserve' => $this->preserve)); ?>
+ = date('d.m. H:i', $comment->comment_timestamp); ?> + | + ++ comment_objecttype_id === '1'): ?> + + comment_objecttype_id === '2'): ?> + + + + comment_type) { + case 'flapping': + $icon = 'icinga-icon-flapping'; + $tooltip = 'Comment was caused by a flapping host or service.'; + break; + case 'comment': + $icon = 'icinga-icon-user'; + $tooltip = 'Comment was created by an user.'; + break; + case 'downtime': + $icon = 'icinga-icon-down'; + $tooltip = 'Comment was caused by a downtime.'; + case 'ack': + $icon = 'icinga-icon-acknowledgement'; + $tooltip = 'Comment was caused by an acknowledgement.'; + } + ?> + + + | +- comment_objecttype_id === '1'): ?> - - comment_objecttype_id === '2'): ?> - - - | -- - comment_type) { - case 'flapping': - $icon = 'icinga-icon-flapping'; - $tooltip = 'Comment is caused by a flapping host or service.'; - break; - } - ?> - - - | - -
+
+ For
service_name): ?>
= $comment->service_name ?>
+ on
+ = $comment->host_name; ?>
- on
-
+
+ = $comment->host_name; ?>
+
-
- = $comment->host_name; ?>
-
- |
- - = date('d.m. H:i', $comment->comment_timestamp); ?> - | -- = $comment->comment_author; ?> - | -
+ by
+ = $comment->comment_author; ?>
= $comment->comment_data; ?>
- |
- - = ($comment->comment_is_persistent === '1') ? 'Yes' : 'No'; ?> - | -
+
- expires = - ($comment->comment_expiration_timestamp) ? - 'at ' . date('d.m H:i', $comment->comment_expiration_timestamp) : - 'Never'; - ?> + + Persists: = ($comment->comment_is_persistent === '1') ? 'Yes' : 'No'; ?> + + + Expires: = + ($comment->comment_expiration_timestamp) ? + 'at ' . date('d.m H:i', $comment->comment_expiration_timestamp) : + 'Never'; + ?> + + |