Contact Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
b8ac2fccd4
commit
6017dce1cc
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue