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