monitoring/CSS: Use new state- classes in the service detail header

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-25 11:05:32 +02:00
parent 1a4c1a5d94
commit 1e2803ffb7
1 changed files with 2 additions and 3 deletions

View File

@ -1,11 +1,10 @@
<?php
use Icinga\Module\Monitoring\Object\Host;
use Icinga\Module\Monitoring\Object\Service;
?>
<table class="objectstate">
<tr class="state <?= Host::getStateText($object->host_state); ?><?= $object->host_handled ? ' handled' : ''; ?>">
<td class="state">
<tr>
<td class="state-col state-<?= Host::getStateText($object->host_state); ?><?= $object->host_handled ? ' handled' : ''; ?>">
<strong><?= Host::getStateText($object->host_state, true); ?></strong><br>
<?= $this->timeSince($object->host_last_state_change) ?>
</td>