monitoring/detail: Hide last check counter if the service is pending

This commit is contained in:
Eric Lippmann 2015-09-04 15:37:07 +02:00
parent 7a7214d626
commit 3401d09b59
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ if ($object->getType() === $object::TYPE_HOST) {
<?php if (isset($checkNowForm)) { // Form is unset if the current user lacks the respective permission
echo $checkNowForm;
} ?>
<?= $this->timeAgo($object->last_check) ?>
<?php if ((int) $object->state !== 99) {
echo $this->timeUntil($object->last_check);
} ?>
</td>
</tr>
<tr>