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

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

View File

@ -13,6 +13,7 @@ if (! $this->compact): ?>
<div class="content">
<?php
$hostgroups->peekAhead($this->compact);
$firstRow = true;
foreach ($hostgroups as $h): ?>
<?php if ($firstRow): ?>
@ -467,6 +468,17 @@ if ($h->hosts_down_unhandled) {
<?php if ($hostgroups->hasResult()): ?>
</tbody>
</table>
<?php if ($hostgroups->hasMore()): ?>
<?= $this->qlink(
$this->translate('Show More'),
$this->url()->without(array('view', 'limit')),
null,
array(
'data-base-target' => '_next',
'class' => 'pull-right'
)
); ?>
<?php endif ?>
<?php else: ?>
<?= $this->translate('No hostgroups found matching the filter'); ?>
<?php endif ?>