mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
parent
c099b7ddd7
commit
14a555629d
@ -1,28 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Icinga\Module\Monitoring\Object\Service;
|
use Icinga\Module\Monitoring\Object\Service;
|
||||||
|
|
||||||
?>
|
if (! $this->compact): ?>
|
||||||
<?php if (!$this->compact): ?>
|
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs; ?>
|
<?= $this->tabs; ?>
|
||||||
<div style="margin: 1em;" class="dontprint">
|
<?= $this->sortBox; ?>
|
||||||
<?= $this->translate('Sort by'); ?> <?= $this->sortControl; ?>
|
<?= $this->limiter; ?>
|
||||||
</div>
|
<?= $this->paginator; ?>
|
||||||
|
<?= $this->filterEditor; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content" data-base-target="_next">
|
||||||
<table class="pivot servicestates">
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$hasHeader = false;
|
$hasHeader = false;
|
||||||
$pivotData = $this->pivot->toArray();
|
$pivotData = $this->pivot->toArray();
|
||||||
|
if (count($pivotData) === 0) {
|
||||||
|
echo $this->translate('No services found matching the filter') . '</div>';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . ')';
|
$hostFilter = '(host_name=' . implode('|host_name=', array_keys($pivotData)) . ')';
|
||||||
?>
|
?>
|
||||||
|
<table class="pivot servicestates">
|
||||||
<?php if (count($pivotData) === 0): ?>
|
|
||||||
<?= $this->translate('No Services matching the filter'); ?>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<?php foreach ($pivotData as $host_name => $serviceStates): ?>
|
<?php foreach ($pivotData as $host_name => $serviceStates): ?>
|
||||||
<?php if (!$hasHeader): ?>
|
<?php if (!$hasHeader): ?>
|
||||||
<thead>
|
<thead>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user