monitoring/detail: Indicate whether an ack is sticky

refs #9674
This commit is contained in:
Eric Lippmann 2015-09-04 13:04:14 +02:00
parent 90f606fbd4
commit 56e495049c

View File

@ -23,10 +23,21 @@ if ($object->acknowledged): ?>
'<span class="author">' . $this->escape($acknowledgement->getAuthor()) . '</span>', '<span class="author">' . $this->escape($acknowledgement->getAuthor()) . '</span>',
$this->timeAgo($acknowledgement->getEntryTime()) $this->timeAgo($acknowledgement->getEntryTime())
) ?> ) ?>
<?php if (isset($removeAckForm)) { <?php
if ($acknowledgement->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)) {
// Form is unset if the current user lacks the respective permission
// Form is unset if the current user lacks the respective permission // Form is unset if the current user lacks the respective permission
echo $removeAckForm; echo $removeAckForm;
} ?> }
?>
</h3> </h3>
<p> <p>
<span class="sr-only">(<?= $this->translate('Comment') ?>): </span> <span class="sr-only">(<?= $this->translate('Comment') ?>): </span>