mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
968754ec2e
commit
6cd1cb022a
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
use Icinga\Module\Monitoring\Web\Widget\StateBadges;
|
use Icinga\Module\Monitoring\Web\Widget\StateBadges;
|
||||||
|
use Icinga\Web\Url;
|
||||||
|
|
||||||
// Don't fetch rows until they are actually needed to improve dashlet performance
|
// Don't fetch rows until they are actually needed to improve dashlet performance
|
||||||
if (! $stats instanceof stdClass) {
|
if (! $stats instanceof stdClass) {
|
||||||
@ -9,7 +10,8 @@ if (! $stats instanceof stdClass) {
|
|||||||
<div class="v-center">
|
<div class="v-center">
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
sprintf($this->translatePlural('%u Host', '%u Hosts', $stats->hosts_total), $stats->hosts_total),
|
sprintf($this->translatePlural('%u Host', '%u Hosts', $stats->hosts_total), $stats->hosts_total),
|
||||||
'monitoring/list/hosts',
|
// @TODO(el): Fix that
|
||||||
|
Url::fromPath('monitoring/list/hosts')->setParams(isset($baseFilter) ? $baseFilter->getUrlParams() : array()),
|
||||||
null,
|
null,
|
||||||
array('title' => sprintf(
|
array('title' => sprintf(
|
||||||
$this->translatePlural('List %u host', 'List all %u hosts', $stats->hosts_total),
|
$this->translatePlural('List %u host', 'List all %u hosts', $stats->hosts_total),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user