Use timeSince() for the last status change in the host's detail view
Instead of using prefixedTimeSince() which will be removed. refs #6778
This commit is contained in:
parent
291c6bf167
commit
b84452140c
|
@ -10,7 +10,7 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||
<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>
|
||||
|
@ -24,4 +24,4 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||
<?= $this->render('partials/host/statusicons.phtml'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue