Hostgroup Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
916a88542a
commit
66bf3d2eb9
|
@ -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 ?>
|
||||
|
|
Loading…
Reference in New Issue