monitoring: Indent the service groups overview w/ 4 spaces

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-28 17:55:57 +02:00
parent 2e611bfd03
commit 22fb507a2e
2 changed files with 145 additions and 148 deletions

View File

@ -12,7 +12,7 @@ if (! $this->compact): ?>
<?php endif ?> <?php endif ?>
<div class="content"> <div class="content">
<?php if (! $hostgroups->hasResult()): ?> <?php if (! $hostgroups->hasResult()): ?>
<p><?= $this->translate('No host groups found matching the filter.') ?></p> <p><?= $this->translate('No host groups found matching the filter.') ?></p>
</div> </div>
<?php return; endif ?> <?php return; endif ?>

View File

@ -10,21 +10,18 @@ if (! $this->compact): ?>
</div> </div>
<?php endif ?> <?php endif ?>
<div class="content"> <div class="content">
<?php if ($servicegroups->hasResult()): ?> <?php if ($servicegroups->hasResult()): ?>
<p><?= $this->translate('No servicegroups found matching the filter') ?></p> <p><?= $this->translate('No service groups found matching the filter.') ?></p>
</div> </div>
<?php endif ?> <?php return; endif ?>
<table class="groupview action" data-base-target="_next"> <table class="groupview action" data-base-target="_next">
<thead> <thead>
<th><?= $this->translate('Service Group') ?></th> <th><?= $this->translate('Service Group') ?></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 <?php foreach ($servicegroups->peekAhead($this->compact) as $serviceGroup): ?>
$servicegroups->peekAhead($this->compact);
foreach ($servicegroups as $serviceGroup): ?>
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $serviceGroup->servicegroup_name)) ?>"> <tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $serviceGroup->servicegroup_name)) ?>">
<td class="groupname"> <td class="groupname">
<?= $this->qlink( <?= $this->qlink(
@ -156,10 +153,10 @@ foreach ($servicegroups as $serviceGroup): ?>
</td> </td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
</tbody> </tbody>
</table> </table>
<?php if ($servicegroups->hasMore()): ?> <?php if ($servicegroups->hasMore()): ?>
<?= $this->qlink( <?= $this->qlink(
$this->translate('Show More'), $this->translate('Show More'),
$this->url()->without(array('view', 'limit')), $this->url()->without(array('view', 'limit')),
null, null,
@ -167,6 +164,6 @@ foreach ($servicegroups as $serviceGroup): ?>
'data-base-target' => '_next', 'data-base-target' => '_next',
'class' => 'pull-right show-more' 'class' => 'pull-right show-more'
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>
</div> </div>