Host Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
66bf3d2eb9
commit
723ff76c17
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
use Icinga\Module\Monitoring\Object\Host;
|
||||
|
||||
$hosts->peekAhead($this->compact);
|
||||
|
||||
if (! $this->compact): ?>
|
||||
<div class="controls separated">
|
||||
<?= $this->tabs; ?>
|
||||
|
@ -93,5 +95,15 @@ if (! $this->compact): ?>
|
|||
</table>
|
||||
<?php if (! $hosts->hasResult()): ?>
|
||||
<?= $this->translate('No hosts found matching the filter'); ?>
|
||||
<?php elseif ($hosts->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