parent
78e4df2ce9
commit
c099b7ddd7
|
@ -1,21 +1,25 @@
|
||||||
<?php
|
<?php
|
||||||
use Icinga\Data\Filter\Filter;
|
use Icinga\Data\Filter\Filter;
|
||||||
use Icinga\Web\Widget\Chart\HistoryColorGrid;
|
use Icinga\Web\Widget\Chart\HistoryColorGrid;
|
||||||
?>
|
|
||||||
|
|
||||||
|
|
||||||
<? if (! $compact): ?>
|
|
||||||
<div class="controls">
|
|
||||||
<?= $this->tabs->render($this); ?>
|
|
||||||
<div class="fake-controls">
|
|
||||||
<?= $form ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<? endif; ?>
|
|
||||||
|
|
||||||
|
if (! $this->compact): ?>
|
||||||
|
<div class="controls">
|
||||||
|
<?= $this->tabs; ?>
|
||||||
|
<?= $this->sortBox; ?>
|
||||||
|
<?= $this->limiter; ?>
|
||||||
|
<?= $this->paginator; ?>
|
||||||
|
<?= $this->filterEditor; ?>
|
||||||
|
<?= $form; ?>
|
||||||
|
</div>
|
||||||
|
<?php endif ?>
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content" data-base-target="_next">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (count($summary) === 0) {
|
||||||
|
echo $this->translate('No state changes in the selected time period.') . '</div>';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$settings = array(
|
$settings = array(
|
||||||
'cnt_up' => array(
|
'cnt_up' => array(
|
||||||
'tooltip' => $this->translate('%d hosts ok on %s'),
|
'tooltip' => $this->translate('%d hosts ok on %s'),
|
||||||
|
@ -63,11 +67,8 @@ $to = intval($form->getValue('to', time()));
|
||||||
if ($to - $from > 315360000) {
|
if ($to - $from > 315360000) {
|
||||||
$from = $to - 315360000;
|
$from = $to - 315360000;
|
||||||
}
|
}
|
||||||
$data = array();
|
|
||||||
|
|
||||||
if (count($summary) === 0) {
|
$data = array();
|
||||||
echo $this->translate('No state changes in the selected time period.');
|
|
||||||
}
|
|
||||||
foreach ($summary as $entry) {
|
foreach ($summary as $entry) {
|
||||||
$day = $entry->day;
|
$day = $entry->day;
|
||||||
$value = $entry->$column;
|
$value = $entry->$column;
|
||||||
|
|
Loading…
Reference in New Issue