= $this->icon('reschedule') ?> = $this->translate('Commands') ?>
-- = sprintf( - $this->translate('Issue commands to all %s selected comments.'), - '' . count($comments) . '' - ) - ?> -
diff --git a/modules/monitoring/application/controllers/CommentsController.php b/modules/monitoring/application/controllers/CommentsController.php index e9a885dbe..e1092b033 100644 --- a/modules/monitoring/application/controllers/CommentsController.php +++ b/modules/monitoring/application/controllers/CommentsController.php @@ -55,8 +55,8 @@ class Monitoring_CommentsController extends Controller 'title' => $this->translate( 'Display detailed information about multiple comments.' ), - 'icon' => 'comment', - 'label' => $this->translate('Comments'), + 'icon' => 'comment', + 'label' => $this->translate('Comments') . sprintf(' (%d)', count($this->comments)), 'url' =>'monitoring/comments/show' ) )->activate('comments'); diff --git a/modules/monitoring/application/controllers/DowntimesController.php b/modules/monitoring/application/controllers/DowntimesController.php index 49424ed3a..4ba872bbd 100644 --- a/modules/monitoring/application/controllers/DowntimesController.php +++ b/modules/monitoring/application/controllers/DowntimesController.php @@ -75,8 +75,8 @@ class Monitoring_DowntimesController extends Controller 'title' => $this->translate( 'Display detailed information about multiple downtimes.' ), - 'icon' => 'plug', - 'label' => $this->translate('Downtimes'), + 'icon' => 'plug', + 'label' => $this->translate('Downtimes') . sprintf(' (%d)', count($this->downtimes)), 'url' =>'monitoring/downtimes/show' ) )->activate('downtimes'); diff --git a/modules/monitoring/application/controllers/HostsController.php b/modules/monitoring/application/controllers/HostsController.php index 5a734cbbe..45eca1135 100644 --- a/modules/monitoring/application/controllers/HostsController.php +++ b/modules/monitoring/application/controllers/HostsController.php @@ -41,7 +41,7 @@ class Monitoring_HostsController extends Controller $this->translate('Show summarized information for %u hosts'), count($this->hostList) ), - 'label' => sprintf($this->translate('Hosts (%d)'), count($this->hostList)), + 'label' => $this->translate('Hosts') . sprintf(' (%d)', count($this->hostList)), 'url' => Url::fromRequest(), 'icon' => 'host' ) diff --git a/modules/monitoring/application/controllers/ServicesController.php b/modules/monitoring/application/controllers/ServicesController.php index 83b1b5dd5..f4ee73cf5 100644 --- a/modules/monitoring/application/controllers/ServicesController.php +++ b/modules/monitoring/application/controllers/ServicesController.php @@ -40,7 +40,7 @@ class Monitoring_ServicesController extends Controller $this->translate('Show summarized information for %u services'), count($this->serviceList) ), - 'label' => sprintf($this->translate('Services (%d)'), count($this->serviceList)), + 'label' => $this->translate('Services') . sprintf(' (%d)', count($this->serviceList)), 'url' => Url::fromRequest(), 'icon' => 'services' ) diff --git a/modules/monitoring/application/views/scripts/comments/show.phtml b/modules/monitoring/application/views/scripts/comments/show.phtml index f84f512b1..4f9c64d47 100644 --- a/modules/monitoring/application/views/scripts/comments/show.phtml +++ b/modules/monitoring/application/views/scripts/comments/show.phtml @@ -8,15 +8,8 @@ -
- = sprintf( - $this->translate('Issue commands to all %s selected comments.'), - '' . count($comments) . '' - ) - ?> -
- = sprintf( - $this->translate('Issue commands to all %s selected downtimes.'), - '' . count($downtimes) . '' - ) - ?> -
+ 5): ?> = $this->qlink( - sprintf($this->translate('List all %d comments …'), count($comments)), + sprintf($this->translate('show all %d comments'), $i), $listAllLink, null, array( - 'title' => $this->translate('List all'), + 'icon' => $i > 5 ? 'down-open' : '', 'data-base-target' => "_next" ) ) ?> +
diff --git a/modules/monitoring/application/views/scripts/partials/downtime/downtimes-header.phtml b/modules/monitoring/application/views/scripts/partials/downtime/downtimes-header.phtml index 54cd0210c..5518e5022 100644 --- a/modules/monitoring/application/views/scripts/partials/downtime/downtimes-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/downtime/downtimes-header.phtml @@ -79,14 +79,16 @@ -+
+ 5): ?> = $this->qlink( - sprintf($this->translate('List all %d downtimes …'), count($downtimes)), + sprintf($this->translate('show all %d downtimes'), $i), $listAllLink, null, array( - 'title' => $this->translate('List all'), + 'icon' => $i > 5 ? 'down-open' : '', 'data-base-target' => "_next" ) ) ?> +
\ No newline at end of file diff --git a/modules/monitoring/application/views/scripts/partials/host/objects-header.phtml b/modules/monitoring/application/views/scripts/partials/host/objects-header.phtml index 17cf9f7fe..d59479e07 100644 --- a/modules/monitoring/application/views/scripts/partials/host/objects-header.phtml +++ b/modules/monitoring/application/views/scripts/partials/host/objects-header.phtml @@ -25,15 +25,20 @@ $i = 0; -