monitoring/detail: Show an icon if the check result is late

refs #8378
This commit is contained in:
Eric Lippmann 2015-09-07 11:08:37 +02:00
parent e155e1514a
commit d21f635819
1 changed files with 9 additions and 6 deletions

View File

@ -6,12 +6,15 @@ $activeChecksEnabled = (bool) $object->active_checks_enabled;
<tr>
<th><?= $activeChecksEnabled ? $this->translate('Last check') : $this->translate('Last update') ?></th>
<td data-base-target="_self">
<?php if (isset($checkNowForm)) { // Form is unset if the current user lacks the respective permission
echo $checkNowForm;
} ?>
<?php if ((int) $object->state !== 99) {
echo $this->timeAgo($object->last_check);
} ?>
<?php if (isset($checkNowForm)) { // Form is unset if the current user lacks the respective permission
echo $checkNowForm;
} ?>
<?php if ((int) $object->state !== 99) {
echo $this->timeAgo($object->last_check);
} ?>
<?php if ($object->next_update < time()) {
echo $this->icon('circle', $this->translate('Check result is late'), array('class' => 'fg-color-critical'));
} ?>
</td>
</tr>