mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Downtime Overview: Provide a show more link when in compact view
refs #6677
This commit is contained in:
parent
6017dce1cc
commit
5ec85df923
@ -2,6 +2,8 @@
|
|||||||
use Icinga\Module\Monitoring\Object\Host;
|
use Icinga\Module\Monitoring\Object\Host;
|
||||||
use Icinga\Module\Monitoring\Object\Service;
|
use Icinga\Module\Monitoring\Object\Service;
|
||||||
|
|
||||||
|
$downtimes->peekAhead($this->compact);
|
||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs; ?>
|
<?= $this->tabs; ?>
|
||||||
@ -137,5 +139,15 @@ if (! $this->compact): ?>
|
|||||||
</table>
|
</table>
|
||||||
<?php if (! $downtimes->hasResult()): ?>
|
<?php if (! $downtimes->hasResult()): ?>
|
||||||
<?= $this->translate('No downtimes found matching the filter, maybe the downtime already expired.'); ?>
|
<?= $this->translate('No downtimes found matching the filter, maybe the downtime already expired.'); ?>
|
||||||
|
<?php elseif ($downtimes->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