From 32e048693aa42a4b055b2cee798cfb34b2e047d8 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 23 Feb 2015 17:29:50 +0100 Subject: [PATCH] Add proper titles to service multi selection view refs #8458 --- .../views/scripts/services/show.phtml | 234 ++++++++---------- 1 file changed, 102 insertions(+), 132 deletions(-) diff --git a/modules/monitoring/application/views/scripts/services/show.phtml b/modules/monitoring/application/views/scripts/services/show.phtml index 8f818627a..cc88b09e3 100644 --- a/modules/monitoring/application/views/scripts/services/show.phtml +++ b/modules/monitoring/application/views/scripts/services/show.phtml @@ -1,159 +1,129 @@
- render('partials/service/objects-header.phtml') ?> + render('partials/service/objects-header.phtml'); ?>
- translate('No services matching the filter') ?> + translate('No services matching the filter'); ?> - +

translatePlural('%u Service', '%u Services', $serviceCount), $serviceCount); ?>

+
qlink( + sprintf($this->translate('List all %u services'), $serviceCount), + $listAllLink + ); ?>
- - translate('List all') ?> - +
- - +
qlink( + $this->icon('reschedule') . ' ' . sprintf( + $this->translate('Reschedule the next check for all %u services'), + $serviceCount + ), + $rescheduleAllLink, + null, + null, + false + ); ?>
+
qlink( + $this->icon('plug') . ' ' . sprintf($this->translate('Schedule a downtime for all %u services'), $serviceCount), + $downtimeAllLink, + null, + null, + false + ); ?>
+
qlink( + $this->icon('reply') . ' ' . sprintf( + $this->translate('Submit a passive check result for all %u services'), + $serviceCount + ), + $processCheckResultAllLink, + null, + null, + false + ); ?>
+ 0): ?>
- -
- -
- - icon('reschedule'); ?> - translate('Reschedule service checks') ?> - -
- -
- - icon('plug'); ?> - translate('Schedule service downtimes') ?> - -
- -
- - icon('reply'); ?> - translate('Submit passive check results'); ?> - -
- - -

- - translatePlural( '%u Unhandled Service Problem', '%u Unhandled Service Problems', $unhandledCount ), $unhandledCount - ) ?> -

-
- - icon('plug'); ?> - +
qlink( + $this->icon('plug') . ' ' . sprintf( $this->translatePlural( - 'Schedule downtime for unhandled service problem', - 'Schedule downtimes for unhandled service problems', + 'Schedule a downtime for %u unhandled service problem', + 'Schedule a downtime for %u unhandled service problems', $unhandledCount ), $unhandledCount - ) ?> - -
-
- - icon('ok'); ?> -
+
qlink( + $this->icon('ok') . ' ' . sprintf( $this->translatePlural( - 'Acknowledge unhandled service problem', - 'Acknowledge unhandled service problems', + 'Acknowledge %u unhandled service problem', + 'Acknowledge %u unhandled service problems', $unhandledCount ), $unhandledCount - ) ?> - + ), + $acknowledgeUnhandledLink, + null, + null, + false + ); ?>
- - - -

- - translatePlural( - '%u Acknowledged Service Problem', - '%u Acknowledged Service Problems', - $acknowledgedCount - ), + + 0): ?> +
+

translatePlural( + '%u Acknowledged Service Problem', + '%u Acknowledged Service Problems', $acknowledgedCount - ) ?> -

-
- -
- - - -

- - - icon('plug'); ?> - translatePlural( - 'List %u service currently in downtime', - 'List %u services currently in downtime', - $inDowntimeCount - ), - $inDowntimeCount - ) ?> - -

- - - getComments()) ?> - -

- - icon('comment'); ?> - translatePlural( - 'List %u service comment', - 'List %u service comments', - $commentCount - ), - $commentCount - ) ?> - -

- + ), + $commentCount + ), + $commentsLink, + null, + null, + false + ); ?>

+ -
+ \ No newline at end of file