mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
parent
52c452c044
commit
cd9e3693e4
@ -296,7 +296,7 @@ class Monitoring_ListController extends Controller
|
|||||||
->order('downtime_scheduled_start', 'DESC');
|
->order('downtime_scheduled_start', 'DESC');
|
||||||
|
|
||||||
$this->applyFilters($query);
|
$this->applyFilters($query);
|
||||||
$this->view->downtimes = $query->paginate();
|
|
||||||
$this->setupSortControl(array(
|
$this->setupSortControl(array(
|
||||||
'downtime_is_in_effect' => $this->translate('Is In Effect'),
|
'downtime_is_in_effect' => $this->translate('Is In Effect'),
|
||||||
'downtime_host' => $this->translate('Host / Service'),
|
'downtime_host' => $this->translate('Host / Service'),
|
||||||
@ -308,6 +308,8 @@ class Monitoring_ListController extends Controller
|
|||||||
'downtime_scheduled_end' => $this->translate('Scheduled End'),
|
'downtime_scheduled_end' => $this->translate('Scheduled End'),
|
||||||
'downtime_duration' => $this->translate('Duration'),
|
'downtime_duration' => $this->translate('Duration'),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$this->view->downtimes = $query->paginate();
|
||||||
$this->view->delDowntimeForm = new DeleteDowntimeCommandForm();
|
$this->view->delDowntimeForm = new DeleteDowntimeCommandForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
<?= $this->tabs->render($this); ?>
|
<?= $this->tabs->render($this); ?>
|
||||||
<div style="margin: 1em" class="dontprint">
|
<div style="margin: 1em" class="dontprint">
|
||||||
<?= $this->translate('Sort by'); ?> <?= $this->sortControl->render($this); ?>
|
<?= $this->translate('Sort by'); ?> <?= $this->sortControl->render($this); ?>
|
||||||
|
<?php if (! $this->filterEditor): ?>
|
||||||
|
<?= $this->filterPreview ?>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?= $this->widget('limiter', array('url' => $this->url, 'max' => $downtimes->count())); ?>
|
<?= $this->widget('limiter', array('url' => $this->url, 'max' => $downtimes->count())); ?>
|
||||||
<?= $this->paginationControl($downtimes, null, null, array('preserve' => $this->preserve)); ?>
|
<?= $this->paginationControl($downtimes, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
@ -10,6 +13,7 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<?= $this->filterEditor ?>
|
||||||
<?php if (empty($downtimes)): ?>
|
<?php if (empty($downtimes)): ?>
|
||||||
<?= $this->translate('No downtimes matching the filter'); ?>
|
<?= $this->translate('No downtimes matching the filter'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -16,6 +16,7 @@ class DowntimeQuery extends IdoQuery
|
|||||||
protected $columnMap = array(
|
protected $columnMap = array(
|
||||||
'downtime' => array(
|
'downtime' => array(
|
||||||
'downtime_author' => 'sd.author_name',
|
'downtime_author' => 'sd.author_name',
|
||||||
|
'author' => 'sd.author_name',
|
||||||
'downtime_comment' => 'sd.comment_data',
|
'downtime_comment' => 'sd.comment_data',
|
||||||
'downtime_entry_time' => 'UNIX_TIMESTAMP(sd.entry_time)',
|
'downtime_entry_time' => 'UNIX_TIMESTAMP(sd.entry_time)',
|
||||||
'downtime_is_fixed' => 'sd.is_fixed',
|
'downtime_is_fixed' => 'sd.is_fixed',
|
||||||
|
@ -16,6 +16,7 @@ class Downtime extends DataView
|
|||||||
return array(
|
return array(
|
||||||
'downtime_objecttype',
|
'downtime_objecttype',
|
||||||
'downtime_author',
|
'downtime_author',
|
||||||
|
'author',
|
||||||
'downtime_comment',
|
'downtime_comment',
|
||||||
'downtime_entry_time',
|
'downtime_entry_time',
|
||||||
'downtime_is_fixed',
|
'downtime_is_fixed',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user