From d7aca56c4398ccda3dac53e154e37e8a86246866 Mon Sep 17 00:00:00 2001 From: Eric Lippmann <eric.lippmann@netways.de> Date: Mon, 7 Sep 2015 11:28:15 +0200 Subject: [PATCH] monitoring/detail: Use an icon for displaying reachability --- .../views/scripts/show/components/checksource.phtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/monitoring/application/views/scripts/show/components/checksource.phtml b/modules/monitoring/application/views/scripts/show/components/checksource.phtml index 07e63e835..bc90581d1 100644 --- a/modules/monitoring/application/views/scripts/show/components/checksource.phtml +++ b/modules/monitoring/application/views/scripts/show/components/checksource.phtml @@ -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 ?>