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
1 changed files with 13 additions and 2 deletions

View File

@ -23,10 +23,21 @@ if ($object->acknowledged): ?>
'<span class="author">' . $this->escape($acknowledgement->getAuthor()) . '</span>',
$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
echo $removeAckForm;
} ?>
}
?>
</h3>
<p>
<span class="sr-only">(<?= $this->translate('Comment') ?>): </span>