diff --git a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml index 5582cf0846..d80f33c272 100644 --- a/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml +++ b/modules/monitoring/application/views/scripts/show/components/acknowledgement.phtml @@ -8,85 +8,87 @@ if (in_array((int) $object->state, array(0, 99))) { } if ($object->acknowledged): ?> - acknowledgement; - /** @var \Icinga\Module\Monitoring\Object\Acknowledgement $acknowledgement */ - ?> - - translate('Acknowledged') ?> - -
-
- escape($acknowledgement->getAuthor()) ?> - translate('acknowledged') ?> +acknowledgement; +/** @var \Icinga\Module\Monitoring\Object\Acknowledgement $acknowledgement */ +?> + + 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()): ?> -
+ expires()): ?> + translate('Expires %s'), $this->timeUntil($acknowledgement->getExpirationTime()) ) ?> -
- -
- - + + getSticky()): ?> + icon('pin', sprintf( + $this->translate( + 'Acknowledgement remains until the %1$s recovers even if the %1$s changes state' + ), + $object->getType(true) + )) ?> + + + + setAttrib('class', $removeAckForm->getAttrib('class') . ' remove-comment'); + echo $removeAckForm; + ?> + + + +
+
+

createTicketLinks($acknowledgement->getComment()), false) ?>

+
+
+ + - - translate('Not acknowledged') ?> - - hasPermission('monitoring/command/acknowledge-problem')) { - if ($object->getType() === $object::TYPE_HOST) { - $ackLink = $this->href( - 'monitoring/host/acknowledge-problem', - array('host' => $object->getName()), - null, - array('class' => 'action-link') - ); - } else { - $ackLink = $this->href( - 'monitoring/service/acknowledge-problem', - array('host' => $object->getHost()->getName(), 'service' => $object->getName()), - null, - array('class' => 'action-link') - ); - } - ?> - qlink( - $this->translate('Acknowledge'), - $ackLink, + + translate('Not acknowledged') ?> + + hasPermission('monitoring/command/acknowledge-problem')) { + if ($object->getType() === $object::TYPE_HOST) { + $ackLink = $this->href( + 'monitoring/host/acknowledge-problem', + array('host' => $object->getName()), + null, + array('class' => 'action-link') + ); + } else { + $ackLink = $this->href( + 'monitoring/service/acknowledge-problem', + array('host' => $object->getHost()->getName(), 'service' => $object->getName()), null, - array( - 'class' => 'action-link', - 'data-base-target' => '_self', - 'icon' => 'ok', - 'title' => $this->translate( - 'Acknowledge this problem, suppress all future notifications for it and tag it as being handled' - ) + array('class' => 'action-link') + ); + } + ?> + qlink( + $this->translate('Acknowledge'), + $ackLink, + null, + array( + 'class' => 'action-link', + 'data-base-target' => '_self', + 'icon' => 'ok', + 'title' => $this->translate( + 'Acknowledge this problem, suppress all future notifications for it and tag it as being handled' ) - ); ?> - - - + ) + ); ?> + + +