monitoring: Fix coding style in components/header.phtml
This commit is contained in:
parent
d064b0ac79
commit
98acc9166a
|
@ -6,34 +6,34 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||
$isService = $object->getType() === $object::TYPE_SERVICE;
|
||||
|
||||
?>
|
||||
<?php if (!$this->compact): ?>
|
||||
|
||||
<?php if (! $this->compact): ?>
|
||||
<?= $tabs ?>
|
||||
<?php endif ?>
|
||||
|
||||
<table class="objectstate">
|
||||
<tr class="state <?= Host::getStateText($object->host_state); ?><?= $object->host_handled ? ' handled' : '' ?>">
|
||||
<td class="state"<?= $isService ? '' : ' rowspan="2"' ?>>
|
||||
<strong><?= strtoupper(Host::getStateText($object->host_state, true)); ?></strong><br />
|
||||
<?= $this->prefixedTimeSince($object->host_last_state_change, true) ?>
|
||||
</td>
|
||||
<td><b><?= $this->escape($object->host_name) ?></b><?php
|
||||
if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
||||
<br><?= $this->escape($object->host_address) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<td class="state"<?= $isService ? '' : ' rowspan="2"' ?>>
|
||||
<strong><?= strtoupper(Host::getStateText($object->host_state, true)); ?></strong><br />
|
||||
<?= $this->prefixedTimeSince($object->host_last_state_change, true) ?>
|
||||
</td>
|
||||
<td>
|
||||
<b><?= $this->escape($object->host_name) ?></b>
|
||||
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
|
||||
<br><?= $this->escape($object->host_address) ?>
|
||||
<?php endif ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if ($isService): ?>
|
||||
<tr class="state <?= Service::getStateText($object->service_state); ?><?= $object->service_handled ? ' handled' : '' ?>">
|
||||
<td class="state">
|
||||
<strong><?= strtoupper(Service::getStateText($object->service_state, true)); ?></strong><br />
|
||||
<?= $this->prefixedTimeSince($object->service_last_state_change, true) ?>
|
||||
</td>
|
||||
<td><b><?= $this->translate('Service') ?>: <?= $this->escape($object->service_description) ?></b>
|
||||
|
||||
<?= $this->render('show/components/statusIcons.phtml') ?>
|
||||
|
||||
</td>
|
||||
<tr class="state <?= Service::getStateText($object->service_state); ?><?= $object->service_handled ? ' handled' : '' ?>">
|
||||
<td class="state">
|
||||
<strong><?= strtoupper(Service::getStateText($object->service_state, true)); ?></strong><br />
|
||||
<?= $this->prefixedTimeSince($object->service_last_state_change, true) ?>
|
||||
</td>
|
||||
<td>
|
||||
<b><?= $this->translate('Service') ?>: <?= $this->escape($object->service_description) ?></b>
|
||||
<?= $this->render('show/components/statusIcons.phtml') ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<tr><td><!--<b>Host state</b>--> </td></tr>
|
||||
<?php endif ?>
|
||||
</table>
|
||||
|
|
Loading…
Reference in New Issue