mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 07:14:35 +02:00
Hosts view: show object amounts in titles
This commit is contained in:
parent
2ba78f24c3
commit
f0784caaad
@ -24,7 +24,10 @@
|
|||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $listAllLink ?>" title="<?= $this->translate('List all') ?>">
|
<a href="<?= $listAllLink ?>" title="<?php printf(
|
||||||
|
$this->translate('List all Hosts (%u)'),
|
||||||
|
count($objects)
|
||||||
|
); ?>">
|
||||||
<?= $this->translate('List all') ?>
|
<?= $this->translate('List all') ?>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -100,9 +103,19 @@
|
|||||||
<?php if (! empty($objectsInDowntime)): ?>
|
<?php if (! empty($objectsInDowntime)): ?>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="<?= $inDowntimeLink ?>"
|
<a href="<?= $inDowntimeLink ?>"
|
||||||
title="<?= $this->translate('Hosts in downtime') ?>">
|
title="<?php printf(
|
||||||
|
$this->translate('List all hosts in downtime (%u)'),
|
||||||
|
count($objectsInDowntime)
|
||||||
|
); ?>">
|
||||||
<?= $this->icon('plug') ?>
|
<?= $this->icon('plug') ?>
|
||||||
<?= $this->translate(sprintf('%u hosts are in downtime', count($objectsInDowntime))) ?>
|
<?php printf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'%u host is in downtime',
|
||||||
|
'%u hosts are in downtime',
|
||||||
|
count($objectsInDowntime)
|
||||||
|
),
|
||||||
|
count($objectsInDowntime)
|
||||||
|
); ?>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
@ -110,7 +123,10 @@
|
|||||||
<?php if (count($objects->getComments())): ?>
|
<?php if (count($objects->getComments())): ?>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="<?= $havingCommentsLink ?>"
|
<a href="<?= $havingCommentsLink ?>"
|
||||||
title="<?= $this->translate('Comments') ?>">
|
title="<?php printf(
|
||||||
|
$this->translate('List all Comments (%u)'),
|
||||||
|
count($objects->getComments())
|
||||||
|
); ?>">
|
||||||
<?= $this->icon('comment') ?>
|
<?= $this->icon('comment') ?>
|
||||||
<?= $this->translate(sprintf('%u comments', count($objects->getComments()))) ?>
|
<?= $this->translate(sprintf('%u comments', count($objects->getComments()))) ?>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user