parent
0c0944174a
commit
2a25063678
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue