From aa6d6b1d41fc3898b03e7abf64111d5bdadd7a09 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 20 Mar 2014 09:41:41 +0100 Subject: [PATCH] Make servicematrix x-axis header titles linking to filtered servicelist --- .../views/scripts/list/servicematrix.phtml | 22 ++++++++++++++----- public/css/icinga/monitoring-colors.less | 15 ++++++++----- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/servicematrix.phtml b/modules/monitoring/application/views/scripts/list/servicematrix.phtml index e50ece4fd..8fc360a0d 100644 --- a/modules/monitoring/application/views/scripts/list/servicematrix.phtml +++ b/modules/monitoring/application/views/scripts/list/servicematrix.phtml @@ -16,8 +16,12 @@
- -pivot->toArray() as $host_name => $serviceStates): ?> +pivot->toArray(); +$hostFilter = implode(',', array_keys($pivotData)); +?> + $serviceStates): ?> @@ -26,9 +30,17 @@
- - 18 ? substr($service_description, 0, 18) . '...' : $service_description; ?> - + + + 18 ? substr($service_description, 0, 18) . '...' : $service_description; ?> + +
diff --git a/public/css/icinga/monitoring-colors.less b/public/css/icinga/monitoring-colors.less index 7b555ee8f..f97b569a7 100644 --- a/public/css/icinga/monitoring-colors.less +++ b/public/css/icinga/monitoring-colors.less @@ -531,6 +531,15 @@ div.pivot-pagination { } table.pivot { + a { + text-decoration: none; + color: black; + + &:hover { + color: #666; + } + } + thead { th { height: 6em; @@ -578,12 +587,6 @@ table.pivot { a { font-size: 0.8em; - text-decoration: none; - color: black; - - &:hover { - color: #666; - } } }