mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
monitoring: Readd link to all configured hosts
This commit is contained in:
parent
34edf87461
commit
9b4f3c9f60
@ -15,7 +15,15 @@ $this->baseFilter = isset($this->baseFilter) ? $this->baseFilter : null;
|
|||||||
$selfUrl = 'monitoring/list/hosts';
|
$selfUrl = 'monitoring/list/hosts';
|
||||||
$currentUrl = Url::fromRequest()->getRelativeUrl();
|
$currentUrl = Url::fromRequest()->getRelativeUrl();
|
||||||
?><div class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
|
?><div class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
|
||||||
<?= sprintf($this->translate('%s hosts:'), $this->stats->hosts_total); ?>
|
<?= $this->qlink(
|
||||||
|
sprintf($this->translatePlural('%u Host', '%u Hosts', $this->stats->hosts_total), $this->stats->hosts_total),
|
||||||
|
$selfUrl,
|
||||||
|
null,
|
||||||
|
array('title' => sprintf(
|
||||||
|
$this->translatePlural('List %u host', 'List all %u hosts', $this->stats->hosts_total),
|
||||||
|
$this->stats->hosts_total
|
||||||
|
))
|
||||||
|
) ?>:
|
||||||
<span class="badges">
|
<span class="badges">
|
||||||
<?php if ($this->stats->hosts_up): ?>
|
<?php if ($this->stats->hosts_up): ?>
|
||||||
<span class="state ok<?= $currentUrl === Url::fromPath($selfUrl, array('host_state' => 0))->getRelativeUrl() ? ' active' : ''; ?>">
|
<span class="state ok<?= $currentUrl === Url::fromPath($selfUrl, array('host_state' => 0))->getRelativeUrl() ? ' active' : ''; ?>">
|
||||||
@ -156,4 +164,4 @@ $currentUrl = Url::fromRequest()->getRelativeUrl();
|
|||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user