monitoring: Remove trailing semicolon from inline echo tags in the service detail header

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 11:06:31 +02:00
parent 78c07da9b7
commit 3f821ac284
1 changed files with 11 additions and 11 deletions

View File

@ -4,35 +4,35 @@ use Icinga\Module\Monitoring\Object\Service;
?> ?>
<table> <table>
<tr> <tr>
<td class="state-col state-<?= Host::getStateText($object->host_state); ?><?= $object->host_handled ? ' handled' : ''; ?>"> <td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
<strong><?= Host::getStateText($object->host_state, true); ?></strong><br> <strong><?= Host::getStateText($object->host_state, true) ?></strong><br>
<?= $this->timeSince($object->host_last_state_change) ?> <?= $this->timeSince($object->host_last_state_change) ?>
</td> </td>
<td> <td>
<?= $this->iconImage()->service($object) ?> <?= $this->iconImage()->service($object) ?>
<strong><?= $this->escape($object->host_display_name); ?></strong> <strong><?= $this->escape($object->host_display_name) ?></strong>
<?php if ($object->host_display_name !== $object->host_name): ?> <?php if ($object->host_display_name !== $object->host_name): ?>
<small>(<?= $this->escape($object->host_name); ?>)</small> <small>(<?= $this->escape($object->host_name) ?>)</small>
<?php endif ?> <?php endif ?>
<?php if ($object->host_address && $object->host_address !== $object->host_name): ?> <?php if ($object->host_address && $object->host_address !== $object->host_name): ?>
<br> <br>
<?= $this->escape($object->host_address); ?> <?= $this->escape($object->host_address) ?>
<?php endif ?> <?php endif ?>
<?= $this->render('partials/host/statusicons.phtml'); ?> <?= $this->render('partials/host/statusicons.phtml') ?>
</td> </td>
</tr> </tr>
<tr class="state <?= Service::getStateText($object->service_state); ?><?= $object->service_handled ? ' handled' : ''; ?>"> <tr class="state <?= Service::getStateText($object->service_state) ?><?= $object->service_handled ? ' handled' : '' ?>">
<td class="state"> <td class="state">
<strong><?= Service::getStateText($object->service_state, true); ?></strong><br> <strong><?= Service::getStateText($object->service_state, true) ?></strong><br>
<?= $this->timeSince($object->service_last_state_change) ?> <?= $this->timeSince($object->service_last_state_change) ?>
</td> </td>
<td> <td>
<?= $this->iconImage()->host($object) ?> <?= $this->iconImage()->host($object) ?>
<strong><?= $this->translate('Service'); ?>: <?= $this->escape($object->service_display_name); ?></strong> <strong><?= $this->translate('Service') ?>: <?= $this->escape($object->service_display_name) ?></strong>
<?php if ($object->service_display_name !== $object->service_description): ?> <?php if ($object->service_display_name !== $object->service_description): ?>
<small>(<?= $this->escape($object->service_description); ?>)</small> <small>(<?= $this->escape($object->service_description) ?>)</small>
<?php endif ?> <?php endif ?>
<?= $this->render('partials/service/statusicons.phtml'); ?> <?= $this->render('partials/service/statusicons.phtml') ?>
</td> </td>
</tr> </tr>
</table> </table>