mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Fix pies in multi views
This commit is contained in:
parent
80730e0bb2
commit
ec38c0c817
@ -134,7 +134,9 @@ class Monitoring_HostsController extends Controller
|
|||||||
{
|
{
|
||||||
$chart = new InlinePie(array_values($states), $title, $colors);
|
$chart = new InlinePie(array_values($states), $title, $colors);
|
||||||
return $chart
|
return $chart
|
||||||
->setTitle($title);
|
->setSize(75)
|
||||||
|
->setTitle('')
|
||||||
|
->setSparklineClass('sparkline-multi');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -162,9 +162,8 @@ class Monitoring_ServicesController extends Controller
|
|||||||
{
|
{
|
||||||
$chart = new InlinePie(array_values($states), $title, $colors);
|
$chart = new InlinePie(array_values($states), $title, $colors);
|
||||||
return $chart
|
return $chart
|
||||||
// ->setLabel(array_map('strtoupper', array_keys($states)))
|
->setSize(75)
|
||||||
->setSize(50)
|
->setTitle('')
|
||||||
->setTitle($title)
|
|
||||||
->setSparklineClass('sparkline-multi');
|
->setSparklineClass('sparkline-multi');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item">
|
<div class="hbox-item">
|
||||||
<?= $this->hostStatesPieChart ?>
|
<?= $this->hostStatesPieChart ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item" style="font-size: 14px">
|
<div class="hbox-item" style="font-size: 14px">
|
||||||
<?php foreach (array_filter($hostStates) as $text => $count) {
|
<?php foreach (array_filter($hostStates) as $text => $count) {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<b><?= sprintf($this->translatePlural('Service (%u)', 'Services (%u)', $serviceCount), $serviceCount) ?></b>
|
<b><?= sprintf($this->translatePlural('Service (%u)', 'Services (%u)', $serviceCount), $serviceCount) ?></b>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item">
|
<div class="hbox-item">
|
||||||
<?= $this->serviceStatesPieChart ?>
|
<?= $this->serviceStatesPieChart ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item" style="font-size: 14px">
|
<div class="hbox-item" style="font-size: 14px">
|
||||||
<?php foreach (array_filter($serviceStates) as $text => $count) {
|
<?php foreach (array_filter($serviceStates) as $text => $count) {
|
||||||
@ -27,7 +27,7 @@
|
|||||||
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
<b><?= sprintf($this->translatePlural('Host (%u)', 'Hosts (%u)', $hostCount), $hostCount) ?></b>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item">
|
<div class="hbox-item">
|
||||||
<?= $this->hostStatesPieChart ?>
|
<?= $this->hostStatesPieChart ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="hbox-item" style="font-size: 14px">
|
<div class="hbox-item" style="font-size: 14px">
|
||||||
<?php foreach (array_filter($hostStates) as $text => $count) {
|
<?php foreach (array_filter($hostStates) as $text => $count) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user