From d44f89f28706470d7e24bb1809381e1cb5b3b8d9 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 25 Jun 2014 21:46:03 +0200 Subject: [PATCH] list/hosts: fix downtime icon I re-enabled host list icons, they have been missing for a while. The downtime icon logic used to be inverted, this fixes it. Also showing acknowledgements now even if object is in downtime. --- modules/monitoring/application/views/scripts/list/hosts.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index e484a6fe7..455f06957 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -41,7 +41,7 @@ if ($hosts->count() === 0) { $icons[] = $this->icon('unhandled.png', 'Unhandled'); } - if ($host->host_acknowledged && !$host->host_in_downtime) { + if ($host->host_acknowledged) { $icons[] = $this->icon('acknowledgement.png', 'Acknowledged'); } @@ -53,7 +53,7 @@ if ($hosts->count() === 0) { $icons[] = $this->icon('notification_disabled.png', 'Notifications Disabled'); } - if (!$host->host_in_downtime) { + if ($host->host_in_downtime) { $icons[] = $this->icon('in_downtime.png', 'In Downtime'); }