Remove action table tr hrefs that do not have any effect

refs #5543
This commit is contained in:
Matthias Jentsch 2015-10-01 14:08:29 +02:00
parent 0c0944174a
commit 2a25063678
4 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ if (! $this->compact): ?>
</thead>
<tbody>
<?php foreach ($hostgroups->peekAhead($this->compact) as $hostgroup): ?>
<tr href="<?= $this->href('monitoring/list/hosts', array('hostgroup_name' => $hostgroup->hostgroup_name)) ?>">
<tr>
<td class="count-col">
<span class="badge"><?= $hostgroup->hosts_total ?></span>
</td>

View File

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

View File

@ -30,7 +30,7 @@ if (! $this->compact): ?>
</thead>
<tbody>
<?php foreach ($servicegroups->peekAhead($this->compact) as $serviceGroup): ?>
<tr href="<?= $this->href('monitoring/list/services', array('servicegroup_name' => $serviceGroup->servicegroup_name)) ?>">
<tr>
<td class="count-col">
<span class="badge"><?= $serviceGroup->services_total ?></span>
</td>

View File

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