mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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)) ?>">
|
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
|
||||||
<td class="count-col">
|
<td class="count-col">
|
||||||
<span class="badge"><?= $hostgroup->hosts_total ?></span>
|
<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-controllers="<?= $this->href("monitoring/hosts") ?>"
|
||||||
data-icinga-multiselect-data="host">
|
data-icinga-multiselect-data="host">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach($hosts as $host):
|
<?php foreach($hosts->peekAhead($this->compact) as $host):
|
||||||
$hostStateName = Host::getStateText($host->host_state);
|
$hostStateName = Host::getStateText($host->host_state);
|
||||||
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
|
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
|
||||||
<tr href="<?= $hostLink ?>">
|
<tr href="<?= $hostLink ?>">
|
||||||
|
@ -38,7 +38,7 @@ if (! $this->compact): ?>
|
|||||||
data-icinga-multiselect-controllers="<?= $this->href('monitoring/services') ?>"
|
data-icinga-multiselect-controllers="<?= $this->href('monitoring/services') ?>"
|
||||||
data-icinga-multiselect-data="service,host">
|
data-icinga-multiselect-data="service,host">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($services as $service):
|
<?php foreach ($services->peekAhead($this->compact) as $service):
|
||||||
$serviceLink = $this->href(
|
$serviceLink = $this->href(
|
||||||
'monitoring/service/show',
|
'monitoring/service/show',
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user