From 344dafe2536237785143c108a3b41cacd6227c08 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 28 Sep 2015 17:06:36 +0200 Subject: [PATCH] monitoring: Display host and service count as badge in the hostgroups overview refs #5543 --- .../views/scripts/list/hostgroups.phtml | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/hostgroups.phtml b/modules/monitoring/application/views/scripts/list/hostgroups.phtml index a9d2e2e8a1..d076a175ef 100644 --- a/modules/monitoring/application/views/scripts/list/hostgroups.phtml +++ b/modules/monitoring/application/views/scripts/list/hostgroups.phtml @@ -19,17 +19,20 @@ if (! $this->compact): ?> + - - + - + + -
translate('Host Group') ?>translate('Total Hosts') ?> translate('Host States') ?>translate('Total Services') ?> translate('Service States') ?>
+ + hosts_total ?> + qlink( $hostgroup->hostgroup_alias, 'monitoring/list/hosts', @@ -39,18 +42,7 @@ if (! $this->compact): ?> $hostgroup->hostgroup_alias )) ) ?> - - - qlink( - $hostgroup->hosts_total, - 'monitoring/list/hosts', - array('hostgroup_name' => $hostgroup->hostgroup_name), - array('title' => sprintf( - $this->translate('List all hosts in host group "%s"'), - $hostgroup->hostgroup_alias - )) - ) ?> - compact): ?> echo $stateBadges->render(); ?> + qlink( $hostgroup->services_total, 'monitoring/list/services', @@ -145,7 +137,7 @@ if (! $this->compact): ?> array('title' => sprintf( $this->translate('List all services of all hosts in host group "%s"'), $hostgroup->hostgroup_alias - )) + ), 'class' => 'badge') ) ?>