monitoring: Indent host groups overview w/ 4 spaces

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-27 14:23:48 +02:00
parent a3d3ba229d
commit 2576754958

View File

@ -1,5 +1,4 @@
<?php <?php
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Web\Widget\StateBadges; use Icinga\Module\Monitoring\Web\Widget\StateBadges;
if (! $this->compact): ?> if (! $this->compact): ?>
@ -11,22 +10,23 @@ if (! $this->compact): ?>
<?= $this->filterEditor ?> <?= $this->filterEditor ?>
</div> </div>
<?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 ?>
<table class="action-table listing-table" data-base-target="_next"> <table class="action-table listing-table" data-base-target="_next">
<thead> <thead>
<tr> <tr>
<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>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<?php foreach ($hostgroups as $hostgroup): ?> <?php foreach ($hostgroups 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="groupname"> <td class="groupname">
@ -34,7 +34,10 @@ if (! $this->compact): ?>
$hostgroup->hostgroup_alias, $hostgroup->hostgroup_alias,
'monitoring/list/hosts', 'monitoring/list/hosts',
array('hostgroup_name' => $hostgroup->hostgroup_name), array('hostgroup_name' => $hostgroup->hostgroup_name),
array('title' => sprintf($this->translate('List all hosts in the group "%s"'), $hostgroup->hostgroup_alias)) array('title' => sprintf(
$this->translate('List all hosts in the group "%s"'),
$hostgroup->hostgroup_alias
))
) ?> ) ?>
</td> </td>
<td class="total"> <td class="total">
@ -264,10 +267,10 @@ if (! $this->compact): ?>
</td> </td>
</tr> </tr>
<?php endforeach ?> <?php endforeach ?>
</tbody> </tbody>
</table> </table>
<?php if ($hostgroups->hasMore()): ?> <?php if ($hostgroups->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,
@ -275,6 +278,6 @@ if (! $this->compact): ?>
'data-base-target' => '_next', 'data-base-target' => '_next',
'class' => 'pull-right show-more' 'class' => 'pull-right show-more'
) )
) ?> ) ?>
<?php endif ?> <?php endif ?>
</div> </div>