diff --git a/modules/monitoring/application/views/scripts/partials/comment/comment-description.phtml b/modules/monitoring/application/views/scripts/partials/comment/comment-description.phtml index 87a7308fc..da0ce7886 100644 --- a/modules/monitoring/application/views/scripts/partials/comment/comment-description.phtml +++ b/modules/monitoring/application/views/scripts/partials/comment/comment-description.phtml @@ -1,27 +1,28 @@ type) { +switch ($comment->type) { case 'flapping': $icon = 'flapping'; $title = $this->translate('Flapping'); - $tooltip = $this->translate('Comment was caused by a flapping host or service.'); + $tooltip = $this->translate('Comment was caused by a flapping host or service'); break; case 'comment': $icon = 'user'; $title = $this->translate('User Comment'); - $tooltip = $this->translate('Comment was created by an user.'); + $tooltip = $this->translate('Comment was created by an user'); break; case 'downtime': $icon = 'plug'; $title = $this->translate('Downtime'); - $tooltip = $this->translate('Comment was caused by a downtime.'); + $tooltip = $this->translate('Comment was caused by a downtime'); break; case 'ack': $icon = 'ok'; $title = $this->translate('Acknowledgement'); - $tooltip = $this->translate('Comment was caused by an acknowledgement.'); + $tooltip = $this->translate('Comment was caused by an acknowledgement'); break; } ?> -escape($title); ?>
+escape($title) ?> +
icon($icon, $tooltip) ?> -timeAgo($comment->timestamp, $this->compact); ?> +timeAgo($comment->timestamp, $this->compact) ?>