mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
monitoring/detail: Use an icon for displaying reachability
This commit is contained in:
parent
a569b19153
commit
d7aca56c43
@ -14,7 +14,11 @@
|
|||||||
<?= $this->translate('Reachable') ?>
|
<?= $this->translate('Reachable') ?>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user