Skip to content

Commit

Permalink
monitoring: Fix thead creation in the service groups overview
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 28, 2015
1 parent 8a6df11 commit 73d674f
Showing 1 changed file with 12 additions and 16 deletions.
Expand Up @@ -8,22 +8,22 @@
</div>
<?php endif ?>
<div class="content">
<?php if ($servicegroups->hasResult()): ?>
<p><?= $this->translate('No servicegroups found matching the filter') ?></p>
</div>
<?php endif ?>
<table class="groupview action" data-base-target="_next">
<thead>
<th><?= $this->translate('Last Problem') ?></th>
<th><?= $this->translate('Service Group') ?></th>
<th><?= $this->translate('Total Services') ?></th>
<th><?= $this->translate('Service States') ?></th>
</thead>
<tbody>
<?php

$servicegroups->peekAhead($this->compact);
$firstRow = true;
foreach ($servicegroups as $s): ?>
<?php if ($firstRow): ?>
<?php $firstRow = false ?>
<table class="groupview action" data-base-target="_next">
<thead>
<th><?= $this->translate('Last Problem') ?></th>
<th><?= $this->translate('Service Group') ?></th>
<th><?= $this->translate('Total Services') ?></th>
<th><?= $this->translate('Service States') ?></th>
</thead>
<tbody>
<?php endif ?>
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $s->servicegroup_name)) ?>">
<?php if ($s->services_critical_last_state_change_unhandled): ?>
<td class="state change critical unhandled">
Expand Down Expand Up @@ -299,7 +299,6 @@ foreach ($servicegroups as $s): ?>
</td>
</tr>
<?php endforeach ?>
<?php if ($servicegroups->hasResult()): ?>
</tbody>
</table>
<?php if ($servicegroups->hasMore()): ?>
Expand All @@ -313,7 +312,4 @@ foreach ($servicegroups as $s): ?>
)
) ?>
<?php endif ?>
<?php else: ?>
<?= $this->translate('No servicegroups found matching the filter') ?>
<?php endif ?>
</div>

0 comments on commit 73d674f

Please sign in to comment.