diff --git a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml index e1d1a68dc..b81e4e258 100644 --- a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml +++ b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml @@ -1,4 +1,4 @@ -acknowledged): ?> translate('Acknowledged') ?> - +
+
+ escape($acknowledgement->getAuthor()) ?> + translate('acknowledged') ?> + timeAgo($acknowledgement->getEntryTime()) ?> + getSticky()) { + echo $this->icon('pin', sprintf( + $this->translate( + 'Acknowledgement remains until the %1$s recovers even if the %1$s changes state' + ), + $object->getType(true) + )); + } + if (isset($removeAckForm)) { + $removeAckForm->setAttrib('class', $removeAckForm->getAttrib('class') . ' pull-right'); + // Form is unset if the current user lacks the respective permission + echo $removeAckForm; + } + ?> +
+
+ createTicketLinks($acknowledgement->getComment()), false) ?> +
+ expires()): ?> +
+ translate('Expires %s'), + $this->timeUntil($acknowledgement->getExpirationTime()) + ) ?> +
+ +
diff --git a/modules/monitoring/application/views/scripts/show/components/comments.phtml b/modules/monitoring/application/views/scripts/show/components/comments.phtml index c67aa4871..a0a88fa72 100644 --- a/modules/monitoring/application/views/scripts/show/components/comments.phtml +++ b/modules/monitoring/application/views/scripts/show/components/comments.phtml @@ -60,16 +60,15 @@ if (empty($object->comments) && ! $addLink) { $deleteButton = ''; } ?> -
+
escape($comment->author) ?> + translate('commented') ?> timeAgo($comment->timestamp) ?> - -
-
+
', $this->createTicketLinks($comment->comment)) ?>