Alertsummary: Ensure dashboard compliance

refs #7876
This commit is contained in:
Johannes Meyer 2015-04-17 16:09:50 +02:00
parent 57d519bca8
commit 5f4a61f36e
2 changed files with 9 additions and 6 deletions

View File

@ -69,8 +69,10 @@ class Monitoring_AlertsummaryController extends Controller
'notification_state' 'notification_state'
) )
); );
$this->view->notifications = $query->paginate(); $this->view->notifications = $query->paginate();
$this->setupLimitControl();
$this->setupPaginationControl($this->view->notifications);
} }
/** /**

View File

@ -1,12 +1,13 @@
<?php if (! $this->compact): ?>
<div class="controls"> <div class="controls">
<?= $this->tabs ?> <?= $this->tabs; ?>
<div style="margin: 1em;" class="dontprint"> <div style="float: right;" class="dontprint">
<?= $intervalBox; ?> <?= $intervalBox; ?>
</div> </div>
<?= $this->widget('limiter') ?> <?= $this->limiter; ?>
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?> <?= $this->paginator; ?>
</div> </div>
<?php endif ?>
<div class="content alertsummary"> <div class="content alertsummary">
<!-- <h1><?= $this->translate('Alert summary'); ?></h1> --> <!-- <h1><?= $this->translate('Alert summary'); ?></h1> -->