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
1 changed files with 11 additions and 9 deletions

View File

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