Link from the host and service group lists to their grids and vice versa
refs #1017
This commit is contained in:
parent
f8a076f20b
commit
88c2fe44e3
|
@ -3,6 +3,11 @@
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<div class="sort-controls-container">
|
<div class="sort-controls-container">
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
|
<a href="<?= $this->href('monitoring/list/hostgroups') ?>" class="grid-toggle-link"
|
||||||
|
title="<?= $this->translate('Toogle grid view mode') ?>">
|
||||||
|
<?= $this->icon('th-list', null, ['class' => '-inactive']) ?>
|
||||||
|
<?= $this->icon('th-thumb-empty', null, ['class' => '-active']) ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->filterEditor ?>
|
<?= $this->filterEditor ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,6 +8,11 @@ if (! $this->compact): ?>
|
||||||
<div class="sort-controls-container">
|
<div class="sort-controls-container">
|
||||||
<?= $this->limiter ?>
|
<?= $this->limiter ?>
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
|
<a href="<?= $this->href('monitoring/list/hostgroup-grid') ?>" class="grid-toggle-link"
|
||||||
|
title="<?= $this->translate('Toogle grid view mode') ?>">
|
||||||
|
<?= $this->icon('th-list', null, ['class' => '-active']) ?>
|
||||||
|
<?= $this->icon('th-thumb-empty', null, ['class' => '-inactive']) ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->filterEditor ?>
|
<?= $this->filterEditor ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<div class="sort-controls-container">
|
<div class="sort-controls-container">
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
|
<a href="<?= $this->href('monitoring/list/servicegroups') ?>" class="grid-toggle-link"
|
||||||
|
title="<?= $this->translate('Toogle grid view mode') ?>">
|
||||||
|
<?= $this->icon('th-list', null, ['class' => '-inactive']) ?>
|
||||||
|
<?= $this->icon('th-thumb-empty', null, ['class' => '-active']) ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->filterEditor ?>
|
<?= $this->filterEditor ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -209,4 +214,4 @@ if (! $serviceGroups->hasResult()): ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,6 +7,11 @@ if (! $this->compact): ?>
|
||||||
<div class="sort-controls-container">
|
<div class="sort-controls-container">
|
||||||
<?= $this->limiter ?>
|
<?= $this->limiter ?>
|
||||||
<?= $this->sortBox ?>
|
<?= $this->sortBox ?>
|
||||||
|
<a href="<?= $this->href('monitoring/list/servicegroup-grid') ?>" class="grid-toggle-link"
|
||||||
|
title="<?= $this->translate('Toogle grid view mode') ?>">
|
||||||
|
<?= $this->icon('th-list', null, ['class' => '-active']) ?>
|
||||||
|
<?= $this->icon('th-thumb-empty', null, ['class' => '-inactive']) ?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->filterEditor ?>
|
<?= $this->filterEditor ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -42,6 +42,26 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hostgroup- and servicegroup-grid styles
|
// Hostgroup- and servicegroup-grid styles
|
||||||
|
|
||||||
|
.grid-toggle-link {
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 1em;
|
||||||
|
text-decoration: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
|
> i {
|
||||||
|
font-size: 1.25em;
|
||||||
|
|
||||||
|
&.-active {
|
||||||
|
color: @icinga-blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.-inactive {
|
||||||
|
color: @gray-light;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.group-grid {
|
.group-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 1em 3em;
|
grid-gap: 1em 3em;
|
||||||
|
|
Loading…
Reference in New Issue