diff --git a/modules/monitoring/application/views/scripts/services/show.phtml b/modules/monitoring/application/views/scripts/services/show.phtml
index 5cd3af1b6..d9aed1581 100644
--- a/modules/monitoring/application/views/scripts/services/show.phtml
+++ b/modules/monitoring/application/views/scripts/services/show.phtml
@@ -20,124 +20,130 @@ use Icinga\Web\Url;
- = $this->translate('No services matching the filter'); ?>
+ = $this->translate('No services matching the filter'); ?>
- = sprintf(t('Issue commands on all %d selected services'), count($objects)) ?>
+ = sprintf(t('Issue commands on all %d selected services:'), count($objects)) ?>
-
+
= $checkNowForm; ?>
- = $this->qlink(
+
+
+ = $this->qlink(
$this->translate('Reschedule the next check'),
$rescheduleAllLink,
null,
array('icon' => 'reschedule')
- ); ?>
-
= $this->qlink(
+ ); ?>
+
+
+
+ = $this->qlink(
$this->translate('Schedule a downtime'),
$downtimeAllLink,
null,
array('icon' => 'plug')
- ); ?>
-
= $this->qlink(
+ ); ?>
+
+
+
+ = $this->qlink(
$this->translate('Submit a passive check result'),
$processCheckResultAllLink,
null,
array('icon' => 'reply')
- ); ?>
-
= $this->qlink(
+ ); ?>
+
+
+
+ = $this->qlink(
$this->translate('Add a comment'),
$addCommentLink,
null,
array('icon' => 'comment')
- ); ?>
-
-
- 0): ?>
-
-
- = $this->icon('attention-alt') ?>
- = $this->translatePlural(
- 'Unhandled Problem',
- 'Unhandled Problems',
- $unhandledCount
- ) ?>
-
-
-
= sprintf(t('There are %s unhandled problems. ' .
- 'Issue commands to the problematic services.'),
- '' . $unhandledCount . '') ?>
-
-
- = $this->qlink(
- sprintf(
- $this->translatePlural(
- 'Schedule a downtime for %u unhandled service problem',
- 'Schedule a downtime for %u unhandled service problems',
- $unhandledCount
- ),
- $unhandledCount
- ),
- $downtimeUnhandledLink,
- null,
- array('icon' => 'plug')
); ?>
-
-
-
= $this->qlink(
- sprintf(
- $this->translatePlural(
- 'Acknowledge %u unhandled service problem',
- 'Acknowledge %u unhandled service problems',
- $unhandledCount
- ),
- $unhandledCount
- ),
- $acknowledgeUnhandledLink,
- null,
- array('icon' => 'ok')
- ); ?>
+
-
-
-
-
- 0): ?>
-
- = $this->icon('ok', $this->translate('Acknowledgements')) ?> = $this->translate('Acknowledgements') ?>
-
- = sprintf(
- $this->translatePlural(
- '%u Acknowledged Service Problem',
- '%u Acknowledged Service Problems',
- $acknowledgedCount
- ),
- $acknowledgedCount
- ); ?> = $removeAckForm ?>
-
-
-
-
- 0): ?>
-
- = $this->icon('plug', $this->translate('Downtimes')) ?> = $this->translate('Downtimes') ?>
- = sprintf($this->translatePlural(
- '%u service currently in downtime',
- '%u services currently in downtime',
- $inDowntimeCount
- ), $inDowntimeCount) ?>
-
+ 0): ?>
- = $this->qlink(
- $this->translate('List all'),
- $inDowntimeLink,
- null,
- array('icon' => 'plug')
- );?>
+
+ = $this->icon('attention-alt') ?>
+ = $this->translatePlural(
+ 'Unhandled Problem',
+ 'Unhandled Problems',
+ $unhandledCount
+ ) ?>
+
+
+
= sprintf(t('There are %s unhandled problems. ' .
+ 'Issue commands to the problematic services.'),
+ '' . $unhandledCount . '') ?>
+
+
+ = $this->qlink(
+ sprintf(
+ $this->translatePlural(
+ 'Schedule a downtime for %u unhandled service problem',
+ 'Schedule a downtime for %u unhandled service problems',
+ $unhandledCount
+ ),
+ $unhandledCount
+ ),
+ $downtimeUnhandledLink,
+ null,
+ array('icon' => 'plug')
+ ); ?>
+
+
+
= $this->qlink(
+ sprintf(
+ $this->translatePlural(
+ 'Acknowledge %u unhandled service problem',
+ 'Acknowledge %u unhandled service problems',
+ $unhandledCount
+ ),
+ $unhandledCount
+ ),
+ $acknowledgeUnhandledLink,
+ null,
+ array('icon' => 'ok')
+ ); ?>
+
+
-
+
+
+ 0): ?>
+ = $this->icon('ok', $this->translate('Acknowledgements')) ?> = $this->translate('Acknowledgements') ?>
+
+ = sprintf(
+ $this->translatePlural(
+ '%u Acknowledged Service Problem.',
+ '%u Acknowledged Service Problems.',
+ $acknowledgedCount
+ ),
+ $acknowledgedCount
+ ); ?> = $removeAckForm ?>
+
+
+
+
+ 0 /*&& $auth->hasPermission('monitoring/command/comment/delete')*/): ?>
+ = $this->icon('plug', $this->translate('Downtimes')) ?> = $this->translate('Downtimes') ?>
+ = sprintf($this->translatePlural(
+ '%u service currently in downtime.',
+ '%u services currently in downtime.',
+ $inDowntimeCount
+ ), $inDowntimeCount) ?>
+
+ = $this->qlink(
+ $this->translate('List all'),
+ $inDowntimeLink,
+ null
+ );?>
+
@@ -146,12 +152,18 @@ use Icinga\Web\Url;
= $this->icon('comment') ?> = t('Comments') ?>
= sprintf(
$this->translatePlural(
- 'There are no comments.',
- 'There are %d comments',
+ 'There is %d comment.',
+ 'There are %d comments.',
$commentCount
), $commentCount);
?>
+ = $this->qlink(
+ $this->translate('List all'),
+ $commentsLink,
+ null
+ ); ?>
+
fetchComments(); ?>
@@ -180,20 +192,9 @@ use Icinga\Web\Url;
+
+
-
+ -->