mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
monitoring: Count services having comments once in services/show.phtml
This commit is contained in:
parent
2e4e04551d
commit
9c989306d9
@ -131,12 +131,20 @@
|
|||||||
</h2>
|
</h2>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (count($objects->getComments())): ?>
|
<?php $havingCommentsCount = count($objects->getComments()) ?>
|
||||||
|
<?php if ($havingCommentsCount): ?>
|
||||||
<h2>
|
<h2>
|
||||||
<a href="<?= $havingCommentsLink ?>"
|
<a href="<?= $havingCommentsLink ?>"
|
||||||
title="<?= $this->translate('Comments') ?>">
|
title="<?= $this->translate('Comments') ?>">
|
||||||
<?= $this->icon('comment') ?>
|
<?= $this->icon('comment') ?>
|
||||||
<?= sprintf($this->translatePlural('%u comment', '%u comments', count($objects->getComments())), count($objects->getComments())) ?>
|
<?= sprintf(
|
||||||
|
$this->translatePlural(
|
||||||
|
'%u comment',
|
||||||
|
'%u comments',
|
||||||
|
$havingCommentsCount
|
||||||
|
),
|
||||||
|
$havingCommentsCount
|
||||||
|
) ?>
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user