mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
61fde8b359
commit
31728fd024
@ -121,7 +121,7 @@ class Monitoring_HostsController 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->hostStatesPieChart = $this->createPieChart(
|
$this->view->hostStatesPieChart = $this->createPieChart(
|
||||||
$hostStates,
|
$hostStates,
|
||||||
|
@ -76,17 +76,43 @@
|
|||||||
) ?>
|
) ?>
|
||||||
</h3>
|
</h3>
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $downtimeUnhandledLink ?>"
|
<a href="<?= $downtimeUnhandledLink ?>" title="<?= sprintf(
|
||||||
title="<?= $this->translate('Schedule downtimes for unhandled problem hosts') ?>">
|
$this->translatePlural(
|
||||||
|
'Schedule downtime for %u unhandled host problem',
|
||||||
|
'Schedule downtimes for %u unhandled host problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>">
|
||||||
<?= $this->icon('plug') ?>
|
<?= $this->icon('plug') ?>
|
||||||
<?= $this->translate('Schedule downtimes for unhandled problem hosts') ?>
|
<?= sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'Schedule downtime for unhandled host problem',
|
||||||
|
'Schedule downtimes for unhandled host problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $acknowledgeUnhandledLink ?>"
|
<a href="<?= $acknowledgeUnhandledLink ?>" title="<?= sprintf(
|
||||||
title="<?= $this->translate('Acknowledge unhandled problem hosts') ?>">
|
$this->translatePlural(
|
||||||
|
'Acknowledge %u unhandled host problem',
|
||||||
|
'Acknowledge %u unhandled host problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>">
|
||||||
<?= $this->icon('ok') ?>
|
<?= $this->icon('ok') ?>
|
||||||
<?= $this->translate('Acknowledge unhandled problem hosts') ?>
|
<?= sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'Acknowledge unhandled host problem',
|
||||||
|
'Acknowledge unhandled host problems',
|
||||||
|
$unhandledCount
|
||||||
|
),
|
||||||
|
$unhandledCount
|
||||||
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@ -123,8 +149,8 @@
|
|||||||
<?= $this->icon('plug') ?>
|
<?= $this->icon('plug') ?>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'%u host is in downtime',
|
'List %u host currently in downtime',
|
||||||
'%u hosts are in downtime',
|
'List %u hosts currently downtime',
|
||||||
$inDowntimeCount
|
$inDowntimeCount
|
||||||
),
|
),
|
||||||
$inDowntimeCount
|
$inDowntimeCount
|
||||||
@ -133,26 +159,26 @@
|
|||||||
</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="<?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'List %u host having comments',
|
'List %u host comment',
|
||||||
'List %u hosts having comments',
|
'List %u host comments',
|
||||||
$havingCommentsLink
|
$commentCount
|
||||||
),
|
),
|
||||||
$havingCommentsLink
|
$commentCount
|
||||||
) ?>">
|
) ?>">
|
||||||
<?= $this->icon('comment') ?>
|
<?= $this->icon('comment') ?>
|
||||||
<?= sprintf(
|
<?= sprintf(
|
||||||
$this->translatePlural(
|
$this->translatePlural(
|
||||||
'%u comment',
|
'List %u host comment',
|
||||||
'%u comments',
|
'List %u host comments',
|
||||||
$havingCommentsCount
|
$commentCount
|
||||||
),
|
),
|
||||||
$havingCommentsCount
|
$commentCount
|
||||||
) ?>
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user