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
|
<?php
|
||||||
use Icinga\Module\Monitoring\Object\Host;
|
use Icinga\Module\Monitoring\Object\Host;
|
||||||
|
|
||||||
|
$hosts->peekAhead($this->compact);
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls separated">
|
<div class="controls separated">
|
||||||
<?= $this->tabs; ?>
|
<?= $this->tabs; ?>
|
||||||
|
@ -93,5 +95,15 @@ if (! $this->compact): ?>
|
||||||
</table>
|
</table>
|
||||||
<?php if (! $hosts->hasResult()): ?>
|
<?php if (! $hosts->hasResult()): ?>
|
||||||
<?= $this->translate('No hosts found matching the filter'); ?>
|
<?= $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 ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue