Skip to content

Commit

Permalink
monitoring/detail: Hide last check counter if the service is pending
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Sep 4, 2015
1 parent 7a7214d commit 3401d09
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -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>
Expand Down

0 comments on commit 3401d09

Please sign in to comment.