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

refs #6677
This commit is contained in:
Johannes Meyer 2015-08-04 15:15:22 +02:00
parent 723ff76c17
commit 792dc177dd
1 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,8 @@
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Object\Service;
$notifications->peekAhead($this->compact);
if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs; ?>
@ -66,5 +68,15 @@ if (! $this->compact): ?>
</table>
<?php if (! $notifications->hasResult()): ?>
<?= $this->translate('No notifications found matching the filter'); ?>
<?php elseif ($notifications->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>