mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
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>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div data-base-target="_next" class="content contacts">
|
<div data-base-target="_next" class="content contacts">
|
||||||
<?php foreach ($contacts as $contact): ?>
|
<?php foreach ($contacts->peekAhead($this->compact) as $contact): ?>
|
||||||
<div class="contact">
|
<div class="contact">
|
||||||
<?= $this->img('/static/gravatar', array('email' => $contact->contact_email)); ?>
|
<?= $this->img('/static/gravatar', array('email' => $contact->contact_email)); ?>
|
||||||
<strong><?= $this->qlink(
|
<strong><?= $this->qlink(
|
||||||
@ -54,5 +54,15 @@
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if (! $contacts->hasResult()): ?>
|
<?php if (! $contacts->hasResult()): ?>
|
||||||
<?= $this->translate('No contacts found matching the filter'); ?>
|
<?= $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 ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user