monitoring: Re-add click action in the host and service overview

refs #5543
This commit is contained in:
Eric Lippmann 2015-09-28 17:30:19 +02:00
parent 301b0a8cc9
commit 5d95229d5b
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ if (! $this->compact): ?>
<?php foreach($hosts as $host):
$hostStateName = Host::getStateText($host->host_state);
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
<tr>
<tr href="<?= $hostLink ?>">
<td class="state-col state-<?= $hostStateName ?><?= $host->host_handled ? ' handled' : '' ?>">
<p>
<span class="state-label"><?= Host::getStateText($host->host_state, true) ?></span>

View File

@ -43,7 +43,7 @@ if (! $this->compact): ?>
)
);
$serviceStateName = Service::getStateText($service->service_state); ?>
<tr>
<tr href="<?= $serviceLink ?>">
<td class="state-col state-<?= $serviceStateName ?><?= $service->service_handled ? ' handled' : '' ?>">
<p>
<span class="state-label"><?= Service::getStateText($service->service_state, true) ?></span>