Use timeSince and timeUntil in the dowtimes overview

refs #6778
This commit is contained in:
Eric Lippmann 2015-05-18 14:18:22 +02:00
parent e1f6aee2e7
commit bd51bed9d7
1 changed files with 1 additions and 10 deletions

View File

@ -42,16 +42,7 @@ use Icinga\Module\Monitoring\Object\Service;
<td class="state">
<strong><?= $downtime->is_in_effect ? $this->translate('Expires') : $this->translate('Starts'); ?></strong>
<br>
<?=
$this->dateTimeRenderer(
($downtime->is_in_effect ? $downtime->end : $downtime->start),
true
)->render(
$this->translate('on %s', 'datetime'),
$this->translate('at %s', 'time'),
$this->translate('in %s', 'timespan')
);
?>
<?= $downtime->is_in_effect ? $this->timeSince($downtime->start) : $this->timeUntil($downtime->start) ?>
</td>
<td>
<?php if ($isService): ?>