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:
parent
917d5fccce
commit
799364e57c
|
@ -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>
|
||||
|
|
|
@ -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 ?>">
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue