Display downtime type as text in the downtimes list
This commit is contained in:
parent
bbaf10aed2
commit
49239dc7db
|
@ -39,8 +39,12 @@
|
|||
); ?>
|
||||
<?php endif ?>
|
||||
<span class="comment-time">
|
||||
<?= $this->translate('by') ?>
|
||||
<?= $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>
|
||||
<?php if (! $downtime->is_in_effect && $downtime->start >= time()): ?>
|
||||
<span><?= sprintf($this->translate('expires %s'), $this->timeUntil($downtime->end)) ?></span>
|
||||
|
|
Loading…
Reference in New Issue