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

refs #6677
This commit is contained in:
Johannes Meyer 2015-08-04 15:13:02 +02:00
parent b8ac2fccd4
commit 6017dce1cc
1 changed files with 11 additions and 1 deletions

View File

@ -8,7 +8,7 @@
</div>
<?php endif ?>
<div data-base-target="_next" class="content contacts">
<?php foreach ($contacts as $contact): ?>
<?php foreach ($contacts->peekAhead($this->compact) as $contact): ?>
<div class="contact">
<?= $this->img('/static/gravatar', array('email' => $contact->contact_email)); ?>
<strong><?= $this->qlink(
@ -54,5 +54,15 @@
<?php endif; ?>
<?php if (! $contacts->hasResult()): ?>
<?= $this->translate('No contacts found matching the filter'); ?>
<?php elseif ($contacts->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>