mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
31728fd024
commit
dd0638c5d0
@ -144,7 +144,7 @@ class Monitoring_ServicesController extends Controller
|
|||||||
$this->view->objectsInDowntime = $objectsInDowntime;
|
$this->view->objectsInDowntime = $objectsInDowntime;
|
||||||
$this->view->inDowntimeLink = Url::fromPath('monitoring/list/downtimes')
|
$this->view->inDowntimeLink = Url::fromPath('monitoring/list/downtimes')
|
||||||
->setQueryString(Filter::matchAny($downtimeFilterExpressions)->toQueryString());
|
->setQueryString(Filter::matchAny($downtimeFilterExpressions)->toQueryString());
|
||||||
$this->view->havingCommentsLink = Url::fromRequest()
|
$this->view->commentsLink = Url::fromRequest()
|
||||||
->setPath('monitoring/list/comments');
|
->setPath('monitoring/list/comments');
|
||||||
$this->view->serviceStatesPieChart = $this->createPieChart(
|
$this->view->serviceStatesPieChart = $this->createPieChart(
|
||||||
$serviceStates,
|
$serviceStates,
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $listAllLink ?>" title="<?= $this->translate('List all') ?>">
|
<a href="<?= $listAllLink ?>" title="<?= sprintf($this->translate('List all %u services'), $serviceCount) ?>">
|
||||||
<?= $this->translate('List all') ?>
|
<?= $this->translate('List all') ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -81,17 +81,43 @@
|
|||||||
) ?>
|
) ?>
|
||||||
</h3>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $downtimeUnhandledLink ?>"
|
<a href="<?= $downtimeUnhandledLink ?>" title="<?= sprintf(
|
||||||
title="<?= $this->translate('Schedule downtimes for unhandled problem services') ?>">
|
$this->translatePlural(
|
||||||
|
'Schedule downtime for %u unhandled service problem',
|
||||||
|
'Schedule downtimes for %u unhandled service problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>">
|
||||||
<?= $this->icon('plug') ?>
|
<?= $this->icon('plug') ?>
|
||||||
<?= $this->translate('Schedule downtimes for unhandled problem services') ?>
|
<?= sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'Schedule downtime for unhandled service problem',
|
||||||
|
'Schedule downtimes for unhandled service problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $acknowledgeUnhandledLink ?>"
|
<a href="<?= $acknowledgeUnhandledLink ?>" title="<?= sprintf(
|
||||||
title="<?= $this->translate('Acknowledge unhandled problem services') ?>">
|
$this->translatePlural(
|
||||||
|
'Acknowledge %u unhandled service problem',
|
||||||
|
'Acknowledge %u unhandled service problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>">
|
||||||
<?= $this->icon('ok') ?>
|
<?= $this->icon('ok') ?>
|
||||||
<?= $this->translate('Acknowledge unhandled problem services') ?>
|
<?= sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'Acknowledge unhandled service problem',
|
||||||
|
'Acknowledge unhandled service problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@ -116,13 +142,18 @@
|
|||||||
<?php if (! empty($objectsInDowntime)): ?>
|
<?php if (! empty($objectsInDowntime)): ?>
|
||||||
<h2>
|
<h2>
|
||||||
<?php $inDowntimeCount = count($objectsInDowntime) ?>
|
<?php $inDowntimeCount = count($objectsInDowntime) ?>
|
||||||
<a href="<?= $inDowntimeLink ?>"
|
<a href="<?= $inDowntimeLink ?>" title="<?= sprintf(
|
||||||
title="<?= $this->translate('Services in downtime') ?>">
|
$this->translatePlural(
|
||||||
|
'List %u service currently in downtime',
|
||||||
|
'List %u services currently in downtime',
|
||||||
|
$inDowntimeCount
|
||||||
|
),
|
||||||
|
$inDowntimeCount) ?>">
|
||||||
<?= $this->icon('plug') ?>
|
<?= $this->icon('plug') ?>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'%u service is in downtime',
|
'List %u service currently in downtime',
|
||||||
'%u services are in downtime',
|
'List %u services currently in downtime',
|
||||||
$inDowntimeCount
|
$inDowntimeCount
|
||||||
),
|
),
|
||||||
$inDowntimeCount
|
$inDowntimeCount
|
||||||
@ -131,19 +162,25 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php $havingCommentsCount = count($objects->getComments()) ?>
|
<?php $commentCount = count($objects->getComments()) ?>
|
||||||
<?php if ($havingCommentsCount): ?>
|
<?php if ($commentCount): ?>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="<?= $havingCommentsLink ?>"
|
<a href="<?= $commentsLink ?>" title="<?= sprintf(
|
||||||
title="<?= $this->translate('Comments') ?>">
|
$this->translatePlural(
|
||||||
|
'List %u service comment',
|
||||||
|
'List %u service comments',
|
||||||
|
$commentCount
|
||||||
|
),
|
||||||
|
$commentCount
|
||||||
|
) ?>">
|
||||||
<?= $this->icon('comment') ?>
|
<?= $this->icon('comment') ?>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'%u comment',
|
'List %u service comment',
|
||||||
'%u comments',
|
'List %u service comments',
|
||||||
$havingCommentsCount
|
$commentCount
|
||||||
),
|
),
|
||||||
$havingCommentsCount
|
$commentCount
|
||||||
) ?>
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user