monitoring: Fix stupid thead creation in the lit/hostgroups view script
Drunk? refs #5543
This commit is contained in:
parent
da50ade2fb
commit
e197907323
|
@ -11,25 +11,21 @@ if (! $this->compact): ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php
|
<?php if (! $hostgroups->hasResult()): ?>
|
||||||
|
<p><?= $this->translate('No host groups found matching the filter.') ?></p>
|
||||||
$firstRow = true;
|
</div>
|
||||||
foreach ($hostgroups as $hostgroup): ?>
|
<?php return; endif ?>
|
||||||
<?php if ($firstRow): ?>
|
<table class="groupview action" data-base-target="_next">
|
||||||
<?php $firstRow = false ?>
|
|
||||||
<table class="groupview action" data-base-target="_next">
|
|
||||||
<thead>
|
<thead>
|
||||||
<th><?= $this->translate('Last Problem') ?></th>
|
<th><?= $this->translate('Last Problem') ?></th>
|
||||||
<th><?= $this->translate('Host Group') ?></th>
|
<th><?= $this->translate('Host Group') ?></th>
|
||||||
<th><?= $this->translate('Total Hosts') ?></th>
|
<th><?= $this->translate('Total Hosts') ?></th>
|
||||||
<th><?= $this->translate('Host States') ?></th>
|
<th><?= $this->translate('Host States') ?></th>
|
||||||
<th><?= $this->translate('Total Services') ?></th>
|
<th><?= $this->translate('Total Services') ?></th>
|
||||||
<th><?= $this->translate('Service States') ?></th>
|
<th><?= $this->translate('Service States') ?></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php endif ?>
|
<?php foreach ($hostgroups as $hostgroup):
|
||||||
<?php
|
|
||||||
|
|
||||||
if ($hostgroup->hosts_down_unhandled) {
|
if ($hostgroup->hosts_down_unhandled) {
|
||||||
$handled = false;
|
$handled = false;
|
||||||
$state = Host::STATE_DOWN;
|
$state = Host::STATE_DOWN;
|
||||||
|
@ -464,7 +460,6 @@ if ($hostgroup->hosts_down_unhandled) {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
<?php if ($hostgroups->hasResult()): ?>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php if ($hostgroups->hasMore()): ?>
|
<?php if ($hostgroups->hasMore()): ?>
|
||||||
|
@ -478,7 +473,4 @@ if ($hostgroup->hosts_down_unhandled) {
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php else: ?>
|
|
||||||
<?= $this->translate('No hostgroups found matching the filter') ?>
|
|
||||||
<?php endif ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue