Use timeSince() for displaying status changes of services instead of prefixedTimeSince()
Note that only the services view excluded the prefix from time diffs when being displayed in the dashboard. I'll readd that for both hosts and services later on. Further, note that only the hosts view excludes the date of the status change when in state pending. I'll add that for the services view too. refs #6778
This commit is contained in:
parent
d5427f03ab
commit
2854859a67
|
@ -57,7 +57,7 @@ foreach ($services as $service):
|
|||
<tr class="state <?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>">
|
||||
<td class="state">
|
||||
<strong><?= Service::getStateText($service->service_state, true); ?></strong><br />
|
||||
<?php if (!$this->compact): ?><?= $this->prefixedTimeSince($service->service_last_state_change); ?><?php else: ?><?= $this->timeSince($service->service_last_state_change); ?><?php endif ?>
|
||||
<?= $this->timeSince($service->service_last_state_change) ?>
|
||||
<?php if ($service->service_state > 0 && (int) $service->service_state_type === 0): ?>
|
||||
<br />
|
||||
<strong>Soft <?= $service->service_attempt ?></strong>
|
||||
|
|
Loading…
Reference in New Issue