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.
This commit is contained in:
Thomas Gelf 2014-06-25 21:46:03 +02:00
parent ff9c29472e
commit d44f89f287
1 changed files with 2 additions and 2 deletions
modules/monitoring/application/views/scripts/list

View File

@ -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');
}