mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
142fc8a21d
commit
3580de6c6e
@ -19,21 +19,15 @@ if (! $this->compact): ?>
|
|||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<table
|
<table data-base-target="_next"
|
||||||
data-base-target="_next"
|
|
||||||
class="action multiselect"
|
class="action multiselect"
|
||||||
data-icinga-multiselect-url="<?= $this->href('monitoring/hosts/show') ?>"
|
data-icinga-multiselect-url="<?= $this->href('monitoring/hosts/show') ?>"
|
||||||
data-icinga-multiselect-controllers="<?= $this->href("monitoring/hosts") ?>"
|
data-icinga-multiselect-controllers="<?= $this->href("monitoring/hosts") ?>"
|
||||||
data-icinga-multiselect-data="host"
|
data-icinga-multiselect-data="host">
|
||||||
>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach($hosts as $host):
|
<?php foreach($hosts as $host):
|
||||||
|
|
||||||
$hostStateName = Host::getStateText($host->host_state);
|
$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' : '' ?>">
|
<tr class="state <?= $hostStateName ?><?= $host->host_handled ? ' handled' : '' ?>">
|
||||||
<td class="state">
|
<td class="state">
|
||||||
<strong><?= Host::getStateText($host->host_state, true) ?></strong>
|
<strong><?= Host::getStateText($host->host_state, true) ?></strong>
|
||||||
@ -54,14 +48,19 @@ if (! $this->compact): ?>
|
|||||||
$hostLink,
|
$hostLink,
|
||||||
null,
|
null,
|
||||||
array(
|
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'
|
'class' => 'rowaction'
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
<?php if (isset($summary[$host->host_name])): ?>
|
<?php if (isset($summary[$host->host_name])): ?>
|
||||||
<span> (<?= $this->qlink(
|
<span> (<?= $this->qlink(
|
||||||
sprintf(
|
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]
|
$summary[$host->host_name]
|
||||||
),
|
),
|
||||||
'monitoring/list/services',
|
'monitoring/list/services',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user