mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
monitoring: Count services in downtime once in services/show.phtml
This commit is contained in:
parent
128f6822f1
commit
2e4e04551d
@ -115,10 +115,18 @@
|
|||||||
|
|
||||||
<?php if (! empty($objectsInDowntime)): ?>
|
<?php if (! empty($objectsInDowntime)): ?>
|
||||||
<h2>
|
<h2>
|
||||||
|
<?php $inDowntimeCount = count($objectsInDowntime) ?>
|
||||||
<a href="<?= $inDowntimeLink ?>"
|
<a href="<?= $inDowntimeLink ?>"
|
||||||
title="<?= $this->translate('Services in downtime') ?>">
|
title="<?= $this->translate('Services in downtime') ?>">
|
||||||
<?= $this->icon('plug') ?>
|
<?= $this->icon('plug') ?>
|
||||||
<?= sprintf($this->translatePlural('%u service is in downtime', '%u services are in downtime', count($objectsInDowntime)), count($objectsInDowntime)) ?>
|
<?= sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'%u service is in downtime',
|
||||||
|
'%u services are in downtime',
|
||||||
|
$inDowntimeCount
|
||||||
|
),
|
||||||
|
$inDowntimeCount
|
||||||
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user