From f0784caaadaf0bf10bafb260804ace9009fb7c68 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Mon, 26 Jan 2015 14:09:39 +0100 Subject: [PATCH] Hosts view: show object amounts in titles --- .../views/scripts/hosts/show.phtml | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/modules/monitoring/application/views/scripts/hosts/show.phtml b/modules/monitoring/application/views/scripts/hosts/show.phtml index 6ab717635..6e114f2d8 100644 --- a/modules/monitoring/application/views/scripts/hosts/show.phtml +++ b/modules/monitoring/application/views/scripts/hosts/show.phtml @@ -24,7 +24,10 @@
- + translate('List all') ?>
@@ -100,9 +103,19 @@

+ title="translate('List all hosts in downtime (%u)'), + count($objectsInDowntime) + ); ?>"> icon('plug') ?> - translate(sprintf('%u hosts are in downtime', count($objectsInDowntime))) ?> + translatePlural( + '%u host is in downtime', + '%u hosts are in downtime', + count($objectsInDowntime) + ), + count($objectsInDowntime) + ); ?>

@@ -110,7 +123,10 @@ getComments())): ?>

+ title="translate('List all Comments (%u)'), + count($objects->getComments()) + ); ?>"> icon('comment') ?> translate(sprintf('%u comments', count($objects->getComments()))) ?>