Event Overview: Provide a show more link when in compact view

refs #6677
This commit is contained in:
Johannes Meyer 2015-08-04 15:13:43 +02:00
parent 5ec85df923
commit 916a88542a
1 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,8 @@
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Object\Service;
$history->peekAhead($this->compact);
if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs; ?>
@ -92,5 +94,15 @@ if (! $this->compact): ?>
</table>
<?php if (! $history->hasResult()): ?>
<?= $this->translate('No history events found matching the filter'); ?>
<?php elseif ($history->hasMore()): ?>
<?= $this->qlink(
$this->translate('Show More'),
$this->url()->without(array('view', 'limit')),
null,
array(
'data-base-target' => '_next',
'class' => 'pull-right'
)
); ?>
<?php endif ?>
</div>