parent
142fc8a21d
commit
3580de6c6e
|
@ -19,21 +19,15 @@ if (! $this->compact): ?>
|
|||
</div>
|
||||
<?php endif ?>
|
||||
<div class="content">
|
||||
<table
|
||||
data-base-target="_next"
|
||||
<table data-base-target="_next"
|
||||
class="action multiselect"
|
||||
data-icinga-multiselect-url="<?= $this->href('monitoring/hosts/show') ?>"
|
||||
data-icinga-multiselect-controllers="<?= $this->href("monitoring/hosts") ?>"
|
||||
data-icinga-multiselect-data="host"
|
||||
>
|
||||
data-icinga-multiselect-data="host">
|
||||
<tbody>
|
||||
<?php foreach($hosts as $host):
|
||||
|
||||
$hostStateName = Host::getStateText($host->host_state);
|
||||
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name));
|
||||
|
||||
|
||||
?>
|
||||
$hostLink = $this->href('monitoring/host/show', array('host' => $host->host_name)); ?>
|
||||
<tr class="state <?= $hostStateName ?><?= $host->host_handled ? ' handled' : '' ?>">
|
||||
<td class="state">
|
||||
<strong><?= Host::getStateText($host->host_state, true) ?></strong>
|
||||
|
@ -54,14 +48,19 @@ if (! $this->compact): ?>
|
|||
$hostLink,
|
||||
null,
|
||||
array(
|
||||
'title' => sprintf($this->translate('Show detailed information for host %s'), $host->host_display_name),
|
||||
'title' => sprintf(
|
||||
$this->translate('Show detailed information for host %s'),
|
||||
$host->host_display_name
|
||||
),
|
||||
'class' => 'rowaction'
|
||||
)
|
||||
) ?>
|
||||
<?php if (isset($summary[$host->host_name])): ?>
|
||||
<span> (<?= $this->qlink(
|
||||
sprintf(
|
||||
$this->translatePlural('%u unhandled service', '%u unhandled services', $summary[$host->host_name]),
|
||||
$this->translatePlural(
|
||||
'%u unhandled service', '%u unhandled services', $summary[$host->host_name]
|
||||
),
|
||||
$summary[$host->host_name]
|
||||
),
|
||||
'monitoring/list/services',
|
||||
|
@ -92,7 +91,7 @@ if (! $this->compact): ?>
|
|||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
<?php if (! $hosts->hasResult()): ?>
|
||||
<?= $this->translate('No hosts found matching the filter') ?>
|
||||
<?php elseif ($hosts->hasMore()): ?>
|
||||
|
|
Loading…
Reference in New Issue