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

refs #6677
This commit is contained in:
Johannes Meyer 2015-08-04 15:16:16 +02:00
parent 792dc177dd
commit 4481224549

View File

@ -10,6 +10,7 @@
<div class="content">
<?php
$servicegroups->peekAhead($this->compact);
$firstRow = true;
foreach ($servicegroups as $s): ?>
<?php if ($firstRow): ?>
@ -301,6 +302,17 @@ foreach ($servicegroups as $s): ?>
<?php if ($servicegroups->hasResult()): ?>
</tbody>
</table>
<?php if ($servicegroups->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 servicegroups found matching the filter'); ?>
<?php endif ?>