Use timeSince() for the last status change in the service's detail view

Instead of using prefixedTimeSince() which will be removed.

refs #6778
This commit is contained in:
Eric Lippmann 2015-04-15 15:06:15 +02:00
parent b84452140c
commit a6a9bd28eb
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ use Icinga\Module\Monitoring\Object\Service;
<tr class="state <?= Host::getStateText($object->host_state); ?><?= $object->host_handled ? ' handled' : ''; ?>">
<td class="state">
<strong><?= Host::getStateText($object->host_state, true); ?></strong><br>
<?= $this->prefixedTimeSince($object->host_last_state_change, true); ?>
<?= $this->timeSince($object->host_last_state_change) ?>
</td>
<td>
<strong><?= $this->escape($object->host_display_name); ?></strong>
@ -28,7 +28,7 @@ use Icinga\Module\Monitoring\Object\Service;
<tr class="state <?= Service::getStateText($object->service_state); ?><?= $object->service_handled ? ' handled' : ''; ?>">
<td class="state">
<strong><?= Service::getStateText($object->service_state, true); ?></strong><br>
<?= $this->prefixedTimeSince($object->service_last_state_change, true); ?>
<?= $this->timeSince($object->service_last_state_change) ?>
</td>
<td>
<strong><?= $this->translate('Service'); ?>: <?= $this->escape($object->service_display_name); ?></strong>