Skip to content

Commit

Permalink
monitoring: Don't render the state label bold when listing services
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Sep 23, 2015
1 parent d87c3b1 commit 596bb08
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions modules/monitoring/application/views/scripts/list/services.phtml
Expand Up @@ -44,17 +44,19 @@ if (! $this->compact): ?>
$serviceStateName = Service::getStateText($service->service_state);
?>
<tr class="state <?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>">
<td class="state">
<strong><?= Service::getStateText($service->service_state, true) ?></strong>
<?php if ((int) $service->service_state !== 99): ?>
<br />
<?= $this->timeSince($service->service_last_state_change, $this->compact) ?>
<?php if ((int) $service->service_state > 0 && (int) $service->service_state_type === 0): ?>
<br />
<strong>Soft <?= $service->service_attempt ?></strong>
<?php endif ?>
<?php endif ?>
</td>
<td class="state">
<p>
<span class="state-label"><?= Service::getStateText($service->service_state, true) ?></span>
<?php if ((int) $service->service_state !== 99): ?>
<br>
<?= $this->timeSince($service->service_last_state_change, $this->compact) ?>
<?php if ((int) $service->service_state > 0 && (int) $service->service_state_type === 0): ?>
<br>
<span class="text-small">Soft <?= $service->service_attempt ?></span>
<?php endif ?>
<?php endif ?>
</p>
</td>

<td>
<?= $this->iconImage()->service($service) ?>
Expand All @@ -64,7 +66,7 @@ if (! $this->compact): ?>
$hostLink,
null,
array('title' => sprintf($this->translate('Show detailed information for host %s'), $service->host_display_name))
) ?>:
) ?>:
<?php endif ?><?= $this->qlink(
$service->service_display_name,
$serviceLink,
Expand Down

0 comments on commit 596bb08

Please sign in to comment.