From e3b2f1586349e683647574cf549728ce3797c4d7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 4 Jul 2014 18:13:44 +0200 Subject: [PATCH] list/hosts: show unhandled services righthand This way we automagically fix the problem with the wrong row links. I guess we should re-introduce the "row-action" class allowing "precedence" rules, so also a link not being the first one in a row could act as "row-link". Changed formatting / text output a little bit, IMO even more cure is needed. fixes #6645 --- .../views/scripts/list/hosts.phtml | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 841789796..caa413bcf 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -81,20 +81,6 @@ if ($hosts->count() === 0) { compact): ?>
- host_unhandled_services) && $host->host_unhandled_services > 0): ?> - - host_unhandled_services ?> - - - monitoringState($host, 'host')) ?>
@@ -122,11 +108,27 @@ if ($hosts->count() === 0) { ) ?> - + host_name ?>
+ ) ?>">host_name ?> + host_unhandled_services) && $host->host_unhandled_services > 0): ?> + (qlink( + sprintf($this->translate('%d unhandled services'), $host->host_unhandled_services), + 'monitoring/show/services', + array( + 'host' => $host->host_name, + 'service_problem' => 1, + 'service_acknowledged' => 0, + 'service_in_downtime' => 0 + ), + array('style' => 'font-weight: normal') + ) ?>) + +
escape(substr(strip_tags($host->host_output), 0, 10000)) ?>