monitoring: Indent the list/hosts view script w/ 4 spaces

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 10:44:26 +02:00
parent 142fc8a21d
commit 3580de6c6e
1 changed files with 94 additions and 95 deletions

View File

@ -19,21 +19,15 @@ if (! $this->compact): ?>
</div>
<?php endif ?>
<div class="content">
<table
data-base-target="_next"
<table data-base-target="_next"
class="action multiselect"
data-icinga-multiselect-url="<?= $this->href('monitoring/hosts/show') ?>"
data-icinga-multiselect-controllers="<?= $this->href("monitoring/hosts") ?>"
data-icinga-multiselect-data="host"
>
data-icinga-multiselect-data="host">
<tbody>
<?php foreach($hosts as $host):
$hostStateName = Host::getStateText($host->host_state);
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name));
?>
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
<tr class="state <?= $hostStateName ?><?= $host->host_handled ? ' handled' : '' ?>">
<td class="state">
<strong><?= Host::getStateText($host->host_state, true) ?></strong>
@ -54,14 +48,19 @@ if (! $this->compact): ?>
$hostLink,
null,
array(
'title' => sprintf($this->translate('Show detailed information for host %s'), $host->host_display_name),
'title' => sprintf(
$this->translate('Show detailed information for host %s'),
$host->host_display_name
),
'class' => 'rowaction'
)
) ?>
<?php if (isset($summary[$host->host_name])): ?>
<span> (<?= $this->qlink(
sprintf(
$this->translatePlural('%u unhandled service', '%u unhandled services', $summary[$host->host_name]),
$this->translatePlural(
'%u unhandled service', '%u unhandled services', $summary[$host->host_name]
),
$summary[$host->host_name]
),
'monitoring/list/services',
@ -92,7 +91,7 @@ if (! $this->compact): ?>
</tr>
<?php endforeach ?>
</tbody>
</table>
</table>
<?php if (! $hosts->hasResult()): ?>
<?= $this->translate('No hosts found matching the filter') ?>
<?php elseif ($hosts->hasMore()): ?>