monitoring/detail: Show acknowledgement expire time if any

resolves 
This commit is contained in:
Eric Lippmann 2015-09-07 14:25:14 +02:00
parent c0f39de200
commit 757c0727c9
1 changed files with 8 additions and 0 deletions
modules/monitoring/application/views/scripts/show/components

View File

@ -43,6 +43,14 @@ if ($object->acknowledged): ?>
<span class="sr-only">(<?= $this->translate('Comment') ?>): </span>
<?= nl2br($this->createTicketLinks($acknowledgement->getComment()), false) ?>
</p>
<?php if ($acknowledgement->expires()): ?>
<p class="info">
<?= sprintf(
$this->translate('Expires %s'),
$this->timeUntil($acknowledgement->getExpirationTime())
) ?>
</p>
<?php endif ?>
</li>
</ul>
</td>