+ = date('d.m. H:i', $comment->comment_timestamp); ?> + | + ++ comment_objecttype_id === '1'): ?> + = $this->img('img/icons/host.png', array('title' => 'Host comment')) ?> + comment_objecttype_id === '2'): ?> + = $this->img('img/icons/service.png', array('title' => 'Service comment')) ?> + + + comment_type) { + case 'flapping': + $icon = 'flapping'; + $tooltip = 'Comment was caused by a flapping host or service.'; + break; + case 'comment': + $icon = 'user'; + $tooltip = 'Comment was created by an user.'; + break; + case 'downtime': + $icon = 'down'; + $tooltip = 'Comment was caused by a downtime.'; + case 'ack': + $icon = 'acknowledgement'; + $tooltip = 'Comment was caused by an acknowledgement.'; + } + ?> + = $this->img('img/icons/' . $icon . '.png', array('title' => $tooltip)) ?> + + | + +
+
+
+
+ For
+ service_name): ?>
+
+ = $comment->service_name ?>
+ on
+ = $comment->host_name; ?>
+
+
+
+ = $comment->host_name; ?>
+
+
+ by
+ = $comment->comment_author; ?>
+
-
+ = $comment->comment_data; ?>
-
- = $this->paginationControl($comments, null, null, array('preserve' => $this->preserve)); ?>
-
+
+
+ Persists: = ($comment->comment_is_persistent === '1') ? 'Yes' : 'No'; ?>
+
+
+ Expires: =
+ ($comment->comment_expiration_timestamp) ?
+ 'at ' . date('d.m H:i', $comment->comment_expiration_timestamp) :
+ 'Never';
+ ?>
+
+
-
- = $this->selectionToolbar('single'); ?>
-
-
-
-
| - comment_objecttype_id === '1'): ?> - = $this->img('img/icons/host.png', array('title' => 'Host comment')) ?> - comment_objecttype_id === '2'): ?> - = $this->img('img/icons/service.png', array('title' => 'Service comment')) ?> - - - comment_type) { - case 'flapping': - $icon = 'flapping'; - $tooltip = 'Comment was caused by a flapping host or service.'; - break; - case 'comment': - $icon = 'user'; - $tooltip = 'Comment was created by an user.'; - break; - case 'downtime': - $icon = 'down'; - $tooltip = 'Comment was caused by a downtime.'; - case 'ack': - $icon = 'acknowledgement'; - $tooltip = 'Comment was caused by an acknowledgement.'; - } - ?> - = $this->img('img/icons/' . $icon . '.png', array('title' => $tooltip)) ?> - - | - -
-
-
-
- For
- service_name): ?>
-
- = $comment->service_name ?>
- on
- = $comment->host_name; ?>
-
-
-
- = $comment->host_name; ?>
-
-
- by
- = $comment->comment_author; ?>
-
- = $comment->comment_data; ?>
-
-
-
-
- Persists: = ($comment->comment_is_persistent === '1') ? 'Yes' : 'No'; ?>
-
-
- Expires: =
- ($comment->comment_expiration_timestamp) ?
- 'at ' . date('d.m H:i', $comment->comment_expiration_timestamp) :
- 'Never';
- ?>
-
-
-
- |
- - $comment->comment_id, - 'host' => $comment->host_name - ); - - if ($objectType === 'service') { - $data['service'] = $comment->service_name; - } - - echo $commandHelper->iconSubmitForm( - 'icinga-icon-remove', - 'Remove comment', - 'btn-small', - 'removecomment', - $data - ); - ?> - | - -
- = $this->paginationControl($comments, null, null, array('preserve' => $this->preserve)); ?>
-