mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Tiny summaries: use header tag instead of div
This commit is contained in:
parent
33025f1b6e
commit
a5a529bc99
@ -14,7 +14,7 @@ function urlAddFilterOptional($url, $filter, $optional) {
|
|||||||
$this->baseFilter = isset($this->baseFilter) ? $this->baseFilter : null;
|
$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"' : ''; ?>>
|
?><h1 class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
sprintf($this->translatePlural('%u Host', '%u Hosts', $this->stats->hosts_total), $this->stats->hosts_total),
|
sprintf($this->translatePlural('%u Host', '%u Hosts', $this->stats->hosts_total), $this->stats->hosts_total),
|
||||||
$selfUrl,
|
$selfUrl,
|
||||||
@ -164,4 +164,4 @@ $currentUrl = Url::fromRequest()->getRelativeUrl();
|
|||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</h1>
|
||||||
|
@ -16,7 +16,7 @@ $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"' : ''; ?>>
|
?><h1 class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
sprintf($this->translatePlural(
|
sprintf($this->translatePlural(
|
||||||
'%u Service', '%u Services', $this->stats->services_total),
|
'%u Service', '%u Services', $this->stats->services_total),
|
||||||
@ -143,4 +143,4 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
|
|||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</h1>
|
||||||
|
@ -13,7 +13,7 @@ function urlAddFilterOptional($url, $filter, $optional) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$selfUrl = Url::fromPath('monitoring/list/services', array('host' => $object->host_name));
|
$selfUrl = Url::fromPath('monitoring/list/services', array('host' => $object->host_name));
|
||||||
?><div class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
|
?><h2 class="tinystatesummary" <?= $this->compact ? ' data-base-target="col1"' : ''; ?>>
|
||||||
<?php if ($object->stats->services_total): ?>
|
<?php if ($object->stats->services_total): ?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
sprintf(
|
sprintf(
|
||||||
@ -147,4 +147,4 @@ foreach (array(2 => 'critical', 3 => 'unknown', 1 => 'warning') as $stateId => $
|
|||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</h2>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user