monitoring: Wrap state information in p in the list/hosts view script

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-24 14:57:52 +02:00
parent 5b3ba5ab6b
commit 55cc3eae78

View File

@ -30,15 +30,17 @@ if (! $this->compact): ?>
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?> $hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
<tr> <tr>
<td class="state-col state-<?= $hostStateName ?><?= $host->host_handled ? '-handled' : '' ?>"> <td class="state-col state-<?= $hostStateName ?><?= $host->host_handled ? '-handled' : '' ?>">
<span class="state-label"><?= Host::getStateText($host->host_state, true) ?></span> <p>
<?php if ((int) $host->host_state !== 99): ?> <span class="state-label"><?= Host::getStateText($host->host_state, true) ?></span>
<br> <?php if ((int) $host->host_state !== 99): ?>
<?= $this->timeSince($host->host_last_state_change, $this->compact) ?> <br>
<?php if ((int) $host->host_state > 0 && (int) $host->host_state_type === 0): ?> <?= $this->timeSince($host->host_last_state_change, $this->compact) ?>
<br> <?php if ((int) $host->host_state > 0 && (int) $host->host_state_type === 0): ?>
<span class="text-small">Soft <?= $host->host_attempt ?></span> <br>
<?php endif ?> <span class="text-small">Soft <?= $host->host_attempt ?></span>
<?php endif ?> <?php endif ?>
<?php endif ?>
</p>
</td> </td>
<td> <td>
<?= $this->iconImage()->host($host) ?> <?= $this->iconImage()->host($host) ?>