monitoring/detail: Use an icon for displaying reachability

This commit is contained in:
Eric Lippmann 2015-09-07 11:28:15 +02:00
parent a569b19153
commit d7aca56c43
1 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@
<?= $this->translate('Reachable') ?>
</th>
<td>
<?= $object->is_reachable ? $this->translate('Yes') : $this->translate('No') ?>
<?php if ((bool) $object->is_reachable) {
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok'));
} else {
echo $this->icon('circle', $this->translate('Not reachable'), array('class' => 'fg-color-critical'));
} ?>
</td>
</tr>
<?php endif ?>