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
1 changed files with 54 additions and 51 deletions

View File

@ -1,5 +1,4 @@
<?php
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Web\Widget\StateBadges;
if (! $this->compact): ?>
@ -11,22 +10,23 @@ if (! $this->compact): ?>
<?= $this->filterEditor ?>
</div>
<?php endif ?>
<div class="content">
<?php if (! $hostgroups->hasResult()): ?>
<?php if (! $hostgroups->hasResult()): ?>
<p><?= $this->translate('No host groups found matching the filter.') ?></p>
</div>
</div>
<?php return; endif ?>
<table class="action-table listing-table" data-base-target="_next">
<thead>
<tr>
<thead>
<tr>
<th><?= $this->translate('Host Group') ?></th>
<th><?= $this->translate('Total Hosts') ?></th>
<th><?= $this->translate('Host States') ?></th>
<th><?= $this->translate('Total Services') ?></th>
<th><?= $this->translate('Service States') ?></th>
</tr>
</thead>
<tbody>
</tr>
</thead>
<tbody>
<?php foreach ($hostgroups as $hostgroup): ?>
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
<td class="groupname">
@ -34,7 +34,10 @@ if (! $this->compact): ?>
$hostgroup->hostgroup_alias,
'monitoring/list/hosts',
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 class="total">
@ -264,10 +267,10 @@ if (! $this->compact): ?>
</td>
</tr>
<?php endforeach ?>
</tbody>
</table>
</tbody>
</table>
<?php if ($hostgroups->hasMore()): ?>
<?= $this->qlink(
<?= $this->qlink(
$this->translate('Show More'),
$this->url()->without(array('view', 'limit')),
null,
@ -275,6 +278,6 @@ if (! $this->compact): ?>
'data-base-target' => '_next',
'class' => 'pull-right show-more'
)
) ?>
) ?>
<?php endif ?>
</div>