monitoring: Wrap td content in p in the host detail

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 11:22:18 +02:00
parent cf36d288a3
commit f74293b5ba

View File

@ -5,10 +5,14 @@ use Icinga\Module\Monitoring\Object\Host;
<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' : '' ?>">
<?= Host::getStateText($object->host_state, true) ?><br> <p>
<?= Host::getStateText($object->host_state, true) ?>
<br>
<?= $this->timeSince($object->host_last_state_change) ?> <?= $this->timeSince($object->host_last_state_change) ?>
</p>
</td> </td>
<td> <td>
<p>
<?= $this->iconImage()->host($object) ?> <?= $this->iconImage()->host($object) ?>
<?= $this->escape($object->host_display_name) ?> <?= $this->escape($object->host_display_name) ?>
<?php if ($object->host_display_name !== $object->host_name): ?> <?php if ($object->host_display_name !== $object->host_name): ?>
@ -19,6 +23,7 @@ use Icinga\Module\Monitoring\Object\Host;
<?= $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') ?>
</p>
</td> </td>
</tr> </tr>
</table> </table>