mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
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;
|
use Icinga\Module\Monitoring\Object\Service;
|
||||||
|
|
||||||
$selfUrl = 'monitoring/list/services';
|
$selfUrl = 'monitoring/list/services';
|
||||||
|
$services->peekAhead($this->compact);
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls separated">
|
<div class="controls separated">
|
||||||
@ -86,5 +87,15 @@ if (! $this->compact): ?>
|
|||||||
</table>
|
</table>
|
||||||
<?php if (! $services->hasResult()): ?>
|
<?php if (! $services->hasResult()): ?>
|
||||||
<?= $this->translate('No services found matching the filter'); ?>
|
<?= $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 ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user