mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
monitoring: Readd link to all configured services
This commit is contained in:
parent
44968266f6
commit
34edf87461
@ -17,7 +17,18 @@ $this->baseFilter = isset($this->baseFilter) ? $this->baseFilter : null;
|
|||||||
$selfUrl = 'monitoring/list/services';
|
$selfUrl = 'monitoring/list/services';
|
||||||
$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 services:'), $this->stats->services_total); ?>
|
<?= $this->qlink(
|
||||||
|
sprintf($this->translatePlural(
|
||||||
|
'%u Service', '%u Services', $this->stats->services_total),
|
||||||
|
$this->stats->services_total
|
||||||
|
),
|
||||||
|
$selfUrl,
|
||||||
|
null,
|
||||||
|
array('title' => sprintf(
|
||||||
|
$this->translatePlural('List %u service', 'List all %u services', $this->stats->services_total),
|
||||||
|
$this->stats->services_total
|
||||||
|
))
|
||||||
|
) ?>:
|
||||||
<span class="badges">
|
<span class="badges">
|
||||||
<?php if ($this->stats->services_ok): ?>
|
<?php if ($this->stats->services_ok): ?>
|
||||||
<span class="state ok<?= $currentUrl === Url::fromPath($selfUrl, array('service_state' => 0))->getRelativeUrl() ? ' active' : ''; ?>">
|
<span class="state ok<?= $currentUrl === Url::fromPath($selfUrl, array('service_state' => 0))->getRelativeUrl() ? ' active' : ''; ?>">
|
||||||
@ -63,7 +74,7 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
|
|||||||
} else {
|
} else {
|
||||||
$active = '';
|
$active = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<span class="state ' . $state . $active . ($this->stats->$unhandled ? '' : ' handled') . '">';
|
echo '<span class="state ' . $state . $active . ($this->stats->$unhandled ? '' : ' handled') . '">';
|
||||||
if ($this->stats->$unhandled) {
|
if ($this->stats->$unhandled) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user