monitoring: Re-add peekAhead in view scripts

Should be still in the controller. But there's no time for that right now.

refs #5543
This commit is contained in:
Eric Lippmann 2015-10-01 02:54:38 +02:00
parent 917d5fccce
commit 799364e57c
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ if (! $this->compact): ?>
</tr>
</thead>
<tbody>
<?php foreach ($hostgroups as $hostgroup): ?>
<?php foreach ($hostgroups->peekAhead($this->compact) as $hostgroup): ?>
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
<td class="count-col">
<span class="badge"><?= $hostgroup->hosts_total ?></span>

View File

@ -37,7 +37,7 @@ if (! $this->compact): ?>
data-icinga-multiselect-controllers="<?= $this->href("monitoring/hosts") ?>"
data-icinga-multiselect-data="host">
<tbody>
<?php foreach($hosts as $host):
<?php foreach($hosts->peekAhead($this->compact) as $host):
$hostStateName = Host::getStateText($host->host_state);
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
<tr href="<?= $hostLink ?>">

View File

@ -38,7 +38,7 @@ if (! $this->compact): ?>
data-icinga-multiselect-controllers="<?= $this->href('monitoring/services') ?>"
data-icinga-multiselect-data="service,host">
<tbody>
<?php foreach ($services as $service):
<?php foreach ($services->peekAhead($this->compact) as $service):
$serviceLink = $this->href(
'monitoring/service/show',
array(