Show every downtime's type in the detail view of a monitored object

refs #2693
This commit is contained in:
Alexander A. Klimov 2017-02-14 18:13:28 +01:00
parent b0221c5e13
commit 31aad4d3f5
1 changed files with 6 additions and 1 deletions

View File

@ -80,7 +80,12 @@ if (empty($object->comments) && ! $addLink) {
}
?>
<dt>
<?= $this->escape($downtime->author_name) ?>
<?= $this->escape(sprintf(
$downtime->is_flexible
? $this->translate('Flexible downtime by %s')
: $this->translate('Fixed downtime by %s'),
$downtime->author_name
)) ?>
<span class="comment-time">
<?= $this->translate('created') ?>
<?= $this->timeAgo($downtime->entry_time) ?>