From ebdf68550b86e53d21268226c2077ec7daac1c8f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Feb 2015 17:25:02 +0100 Subject: [PATCH] Add proper titles to the servicegroups view refs #8458 --- .../views/scripts/list/servicegroups.phtml | 217 ++++++++++-------- 1 file changed, 118 insertions(+), 99 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/servicegroups.phtml b/modules/monitoring/application/views/scripts/list/servicegroups.phtml index 04e6975e1..0e958a3f7 100644 --- a/modules/monitoring/application/views/scripts/list/servicegroups.phtml +++ b/modules/monitoring/application/views/scripts/list/servicegroups.phtml @@ -79,9 +79,12 @@ - - translate($s->servicegroup_alias) ?> - + qlink( + $s->servicegroup_alias, + 'monitoring/list/services', + array('servicegroup' => $s->servicegroup), + array('title' => sprintf($this->translate('List all services in the group "%s"'), $s->servicegroup_alias)) + ); ?> services_total; ?> @@ -89,29 +92,32 @@ services_ok): ?> - - services_ok; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state OK in service group "%s"', + 'List %s services which are currently in state OK in service group "%s"', + $s->services_ok + ), + $s->services_ok, + $s->servicegroup_alias + ) + ) + ); ?> services_critical_unhandled): ?> - - services_critical_unhandled; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state CRITICAL in service group "%s"', + 'List %s services which are currently in state CRITICAL in service group "%s"', + $s->services_critical_unhandled + ), + $s->services_critical_unhandled, + $s->servicegroup_alias + ) + ) + ); ?> services_critical_handled): ?> - - services_critical_handled; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state CRITICAL (Acknowledged) in service group "%s"', + 'List %s services which are currently in state CRITICAL (Acknowledged) in service group "%s"', + $s->services_critical_handled + ), + $s->services_critical_handled, + $s->servicegroup_alias + ) + ) + ); ?> services_critical_unhandled): ?> @@ -161,7 +170,8 @@ services_unknown_unhandled): ?> - - services_unknown_unhandled; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state UNKNOWN in service group "%s"', + 'List %s services which are currently in state UNKNOWN in service group "%s"', + $s->services_unknown_unhandled + ), + $s->services_unknown_unhandled, + $s->servicegroup_alias + ) + ) + ); ?> services_unknown_handled): ?> - - services_unknown_handled; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state UNKNOWN (Acknowledged) in service group "%s"', + 'List %s services which are currently in state UNKNOWN (Acknowledged) in service group "%s"', + $s->services_unknown_handled + ), + $s->services_unknown_handled, + $s->servicegroup_alias + ) + ) + ); ?> services_unknown_unhandled): ?> @@ -211,7 +224,8 @@ services_warning_unhandled): ?> - - services_warning_unhandled; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state WARNING in service group "%s"', + 'List %s services which are currently in state WARNING in service group "%s"', + $s->services_warning_unhandled + ), + $s->services_warning_unhandled, + $s->servicegroup_alias + ) + ) + ); ?> services_warning_handled): ?> - - services_warning_handled; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currently in state WARNING (Acknowledged) in service group "%s"', + 'List %s services which are currently in state WARNING (Acknowledged) in service group "%s"', + $s->services_warning_handled + ), + $s->services_warning_handled, + $s->servicegroup_alias + ) + ) + ); ?> services_warning_unhandled): ?> @@ -261,24 +278,26 @@ services_pending): ?> - - services_pending; ?> - + array( + 'title' => sprintf( + $this->translatePlural( + 'List %s service that is currenlty in state PENDING in service group "%s"', + 'List %s services which are currently in state PENDING in service group "%s"', + $s->services_pending + ), + $s->services_pending, + $s->servicegroup_alias + ) + ) + ); ?>