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

refs #6677
This commit is contained in:
Johannes Meyer 2015-08-04 15:15:08 +02:00
parent 66bf3d2eb9
commit 723ff76c17
1 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,8 @@
<?php
use Icinga\Module\Monitoring\Object\Host;
$hosts->peekAhead($this->compact);
if (! $this->compact): ?>
<div class="controls separated">
<?= $this->tabs; ?>
@ -93,5 +95,15 @@ if (! $this->compact): ?>
</table>
<?php if (! $hosts->hasResult()): ?>
<?= $this->translate('No hosts found matching the filter'); ?>
<?php elseif ($hosts->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>