mirror of
https://github.com/Icinga/icingaweb2-module-graphite.git
synced 2026-06-07 15:52:09 -04:00
/list/hosts: use all available container width
Hosts don't have more than one graph. refs #27
This commit is contained in:
parent
a725de8719
commit
2ffabe3d4a
2 changed files with 14 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ if ($filterEditor->getFilter()->isEmpty()) {
|
|||
echo '<p>' . $this->escape($this->translate('Please specify a filter')) . '</p>';
|
||||
} elseif ($hosts->hasResult()) {
|
||||
foreach ($hosts->peekAhead($compact) as $host) {
|
||||
echo '<div class="graphs-host">';
|
||||
|
||||
if (! $compact) {
|
||||
echo '<h2>'
|
||||
. $this->qlink(
|
||||
|
|
@ -37,6 +39,8 @@ if ($filterEditor->getFilter()->isEmpty()) {
|
|||
. '</h2>';
|
||||
}
|
||||
echo EmbedGraphs::host($host->host_name);
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if (! $compact && $hosts->hasMore()) {
|
||||
|
|
|
|||
|
|
@ -49,3 +49,13 @@ ul.legend {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
div.graphs-host {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-right: 2em;
|
||||
|
||||
> div.container[data-icinga-url] {
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue