From 723ff76c17670daa6469bc81943b0724b150a557 Mon Sep 17 00:00:00 2001 From: Johannes Meyer <johannes.meyer@netways.de> Date: Tue, 4 Aug 2015 15:15:08 +0200 Subject: [PATCH] Host Overview: Provide a show more link when in compact view refs #6677 --- .../application/views/scripts/list/hosts.phtml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/monitoring/application/views/scripts/list/hosts.phtml b/modules/monitoring/application/views/scripts/list/hosts.phtml index 4ff367fd8..4d9e2bbce 100644 --- a/modules/monitoring/application/views/scripts/list/hosts.phtml +++ b/modules/monitoring/application/views/scripts/list/hosts.phtml @@ -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>