monitoring/detail: Show reachable next to check source

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-30 11:50:34 +02:00
parent 762e00c694
commit 95f55a22e3

View File

@ -4,21 +4,19 @@
<?= $this->translate('Check Source') ?> <?= $this->translate('Check Source') ?>
</th> </th>
<td> <td>
<?= $this->escape($object->check_source) ?> <p>
</td> <?php if ($object->is_reachable !== null) {
</tr> if ((bool) $object->is_reachable) {
<?php endif ?> echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok'));
<?php if ($object->is_reachable !== null): ?> } else {
<tr> echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical'));
<th> }
<?= $this->translate('Reachable') ?> } ?>
</th> <?= $this->escape($object->check_source) ?>
<td> <?php if ($object->is_reachable !== null): ?>
<?php if ((bool) $object->is_reachable) { <span class="text-small"><?= (bool) $object->is_reachable ? $this->translate('is reachable') : $this->translate('is not reachable') ?></span>
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok')); <?php endif ?>
} else { </p>
echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical'));
} ?>
</td> </td>
</tr> </tr>
<?php endif ?> <?php endif ?>