Service Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
4481224549
commit
bc91c38a85
|
@ -3,6 +3,7 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||
use Icinga\Module\Monitoring\Object\Service;
|
||||
|
||||
$selfUrl = 'monitoring/list/services';
|
||||
$services->peekAhead($this->compact);
|
||||
|
||||
if (! $this->compact): ?>
|
||||
<div class="controls separated">
|
||||
|
@ -86,5 +87,15 @@ if (! $this->compact): ?>
|
|||
</table>
|
||||
<?php if (! $services->hasResult()): ?>
|
||||
<?= $this->translate('No services found matching the filter'); ?>
|
||||
<?php elseif ($services->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