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 */
- ?>
-
- = $this->translate('Acknowledged') ?> |
-
-
- -
- = $this->escape($acknowledgement->getAuthor()) ?>
- = $this->translate('acknowledged') ?>
+acknowledgement;
+/** @var \Icinga\Module\Monitoring\Object\Acknowledgement $acknowledgement */
+?>
+
+ = $this->translate('Acknowledged') ?> |
+
+
- |
-
+
+ getSticky()): ?>
+ = $this->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;
+ ?>
+
+
+
+
+
+
+ |
+
-
- = $this->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')
- );
- }
- ?>
- = $this->qlink(
- $this->translate('Acknowledge'),
- $ackLink,
+ |
+ = $this->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')
+ );
+ }
+ ?>
+ = $this->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'
)
- ); ?>
-
- |
-
+ )
+ ); ?>
+
+
+