Skip to content

Commit

Permalink
monitoring: Indent the service detail header w/ 4 spaces
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 25, 2015
1 parent 8aa1dcd commit daa9d8a
Showing 1 changed file with 10 additions and 9 deletions.
@@ -1,6 +1,7 @@
<?php
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Object\Service;
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
?>
<table>
<tr>
Expand All @@ -9,15 +10,15 @@ use Icinga\Module\Monitoring\Object\Service;
<?= $this->timeSince($object->host_last_state_change) ?>
</td>
<td>
<?= $this->iconImage()->service($object) ?>
<?= $this->escape($object->host_display_name) ?>
<?php if ($object->host_display_name !== $object->host_name): ?>
<?= $this->iconImage()->service($object) ?>
<?= $this->escape($object->host_display_name) ?>
<?php if ($object->host_display_name !== $object->host_name): ?>
(<?= $this->escape($object->host_name) ?>)
<?php endif ?>
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
<?php endif ?>
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
<br>
<?= $this->escape($object->host_address) ?>
<?php endif ?>
<?php endif ?>
<?= $this->render('partials/host/statusicons.phtml') ?>
</td>
</tr>
Expand All @@ -29,9 +30,9 @@ use Icinga\Module\Monitoring\Object\Service;
<td>
<?= $this->iconImage()->host($object) ?>
<?= $this->translate('Service') ?>: <?= $this->escape($object->service_display_name) ?>
<?php if ($object->service_display_name !== $object->service_description): ?>
(<?= $this->escape($object->service_description) ?>)
<?php endif ?>
<?php if ($object->service_display_name !== $object->service_description): ?>
(<?= $this->escape($object->service_description) ?>)
<?php endif ?>
<?= $this->render('partials/service/statusicons.phtml') ?>
</td>
</tr>
Expand Down

0 comments on commit daa9d8a

Please sign in to comment.