mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Hostgroup Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
916a88542a
commit
66bf3d2eb9
@ -13,6 +13,7 @@ if (! $this->compact): ?>
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$hostgroups->peekAhead($this->compact);
|
||||||
$firstRow = true;
|
$firstRow = true;
|
||||||
foreach ($hostgroups as $h): ?>
|
foreach ($hostgroups as $h): ?>
|
||||||
<?php if ($firstRow): ?>
|
<?php if ($firstRow): ?>
|
||||||
@ -467,6 +468,17 @@ if ($h->hosts_down_unhandled) {
|
|||||||
<?php if ($hostgroups->hasResult()): ?>
|
<?php if ($hostgroups->hasResult()): ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<?php if ($hostgroups->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 else: ?>
|
<?php else: ?>
|
||||||
<?= $this->translate('No hostgroups found matching the filter'); ?>
|
<?= $this->translate('No hostgroups found matching the filter'); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user