Don't show last status change for services if they're in state pending

This commit is contained in:
Eric Lippmann 2015-04-10 15:31:20 +02:00
parent 2854859a67
commit 19cae4b751

View File

@ -56,12 +56,15 @@ foreach ($services as $service):
?> ?>
<tr class="state <?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>"> <tr class="state <?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>">
<td class="state"> <td class="state">
<strong><?= Service::getStateText($service->service_state, true); ?></strong><br /> <strong><?= Service::getStateText($service->service_state, true); ?></strong>
<?= $this->timeSince($service->service_last_state_change) ?> <?php if ((int) $service->service_state !== 99): ?>
<?php if ($service->service_state > 0 && (int) $service->service_state_type === 0): ?> <br />
<br /> <?= $this->timeSince($service->service_last_state_change) ?>
<strong>Soft <?= $service->service_attempt ?></strong> <?php if ((int) $service->service_state > 0 && (int) $service->service_state_type === 0): ?>
<?php endif ?> <br />
<strong>Soft <?= $service->service_attempt ?></strong>
<?php endif ?>
<?php endif ?>
</td> </td>
<td> <td>