mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
54f9ecb62f
commit
a2fa5c055c
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
$cf = $this->getHelper('CommandForm');
|
$cf = $this->getHelper('CommandForm');
|
||||||
|
|
||||||
|
if (count($comments) === 0) {
|
||||||
|
echo t('No comments matching the filter');
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($comments as $comment):
|
foreach ($comments as $comment):
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -5,6 +5,13 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="boxview" data-base-target="_next">
|
<div class="boxview" data-base-target="_next">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (count($groupData) === 0) {
|
||||||
|
echo t('No contacts matching the filter');
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<?php foreach ($groupData as $groupName => $groupInfo): ?>
|
<?php foreach ($groupData as $groupName => $groupInfo): ?>
|
||||||
<div class="box contactgroup">
|
<div class="box contactgroup">
|
||||||
<h2><?= $groupInfo['alias']; ?></h2>
|
<h2><?= $groupInfo['alias']; ?></h2>
|
||||||
|
@ -27,6 +27,11 @@ $contactHelper = $this->getHelper('ContactFlags');
|
|||||||
|
|
||||||
<table class="table table-condensed pull-left">
|
<table class="table table-condensed pull-left">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<?php
|
||||||
|
if (count($contacts) === 0) {
|
||||||
|
echo t('No contacts matching the filter');
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php foreach($contacts as $contact): ?>
|
<?php foreach($contacts as $contact): ?>
|
||||||
<?php $periodLink = $this->href('monitoring/show/contacts', array('contact' => $contact->contact_name)); ?>
|
<?php $periodLink = $this->href('monitoring/show/contacts', array('contact' => $contact->contact_name)); ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -12,6 +12,11 @@ $helper = $this->getHelper('CommandForm');
|
|||||||
<div class="content downtimes">
|
<div class="content downtimes">
|
||||||
<table data-base-target="_next" class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<?php
|
||||||
|
if (count($downtimes) === 0) {
|
||||||
|
echo t('No downtimes matching the filter');
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php foreach ($this->downtimes as $downtime): ?>
|
<?php foreach ($this->downtimes as $downtime): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -14,6 +14,11 @@
|
|||||||
|
|
||||||
<table data-base-target="_next" class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<?php
|
||||||
|
if (count($history) === 0) {
|
||||||
|
echo t('No history events matching the filter');
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php foreach ($history as $event): ?>
|
<?php foreach ($history as $event): ?>
|
||||||
<?php
|
<?php
|
||||||
$class = null;
|
$class = null;
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="boxview" data-base-target="_next">
|
<div class="boxview" data-base-target="_next">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (count($hostgroups) === 0) {
|
||||||
|
echo t('No host groups matching the filter');
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php foreach($hostgroups as $h): ?>
|
<?php foreach($hostgroups as $h): ?>
|
||||||
<div class="box hostgroup">
|
<div class="box hostgroup">
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -20,14 +20,13 @@ if (! $this->compact): ?>
|
|||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ($hosts->count() === 0): ?>
|
if ($hosts->count() === 0) {
|
||||||
<?= $this->translate('No host found') ?>
|
echo t('No hosts matching the filter');
|
||||||
<?php if (! $this->compact): ?>
|
if (! $this->compact) {
|
||||||
</div>
|
echo '</div>';
|
||||||
<?php
|
}
|
||||||
endif;
|
return;
|
||||||
return;
|
}
|
||||||
endif;
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table
|
<table
|
||||||
|
@ -22,6 +22,9 @@ if (empty($this->notifications)) {
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (count($notifications) === 0) {
|
||||||
|
echo t('No notifications matching the filter');
|
||||||
|
}
|
||||||
foreach ($notifications as $notification):
|
foreach ($notifications as $notification):
|
||||||
|
|
||||||
if (isset($notification->service)) {
|
if (isset($notification->service)) {
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="boxview" data-base-target="_next">
|
<div class="boxview" data-base-target="_next">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (count($servicegroups) === 0) {
|
||||||
|
echo t('No service groups matching the filter');
|
||||||
|
}
|
||||||
|
?>
|
||||||
<?php foreach($servicegroups as $servicegroup): ?>
|
<?php foreach($servicegroups as $servicegroup): ?>
|
||||||
<div class="box servicegroup">
|
<div class="box servicegroup">
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -23,7 +23,7 @@ $hostFilter = '(' . implode('|', array_keys($pivotData)) . ')';
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if (count($pivotData) === 0): ?>
|
<?php if (count($pivotData) === 0): ?>
|
||||||
<?= $this->translate('No Service Found'); ?>
|
<?= $this->translate('No Services matching the filter'); ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php foreach ($pivotData as $host_name => $serviceStates): ?>
|
<?php foreach ($pivotData as $host_name => $serviceStates): ?>
|
||||||
|
@ -29,6 +29,9 @@ if (!$this->compact): ?>
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (count($services) === 0) {
|
||||||
|
echo t('No services matching the filter');
|
||||||
|
}
|
||||||
foreach ($services as $service):
|
foreach ($services as $service):
|
||||||
$serviceLink = $this->href(
|
$serviceLink = $this->href(
|
||||||
'monitoring/show/service',
|
'monitoring/show/service',
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
$grid->setColor('#FC0707');
|
$grid->setColor('#FC0707');
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
|
if (count($summary) === 0) {
|
||||||
|
echo t('No history entry matching the filter');
|
||||||
|
}
|
||||||
foreach ($summary as $entry) {
|
foreach ($summary as $entry) {
|
||||||
$day = $entry->day;
|
$day = $entry->day;
|
||||||
$value = $entry->cnt_critical;
|
$value = $entry->cnt_critical;
|
||||||
|
@ -9,8 +9,10 @@ $this->target = array('host' => $this->hostquery);
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<?php if (count($objects) === 0): ?>
|
||||||
|
<?= t('No hosts matching the filter'); ?>
|
||||||
|
<?php else: ?>
|
||||||
<h1> Summary for <?= count($objects) ?> hosts </h1>
|
<h1> Summary for <?= count($objects) ?> hosts </h1>
|
||||||
|
|
||||||
<?= $this->render('multi/components/objectlist.phtml'); ?>
|
<?= $this->render('multi/components/objectlist.phtml'); ?>
|
||||||
<table class="avp">
|
<table class="avp">
|
||||||
<tr>
|
<tr>
|
||||||
@ -47,6 +49,7 @@ $this->target = array('host' => $this->hostquery);
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?= $this->render('multi/components/flags.phtml') ?>
|
<?= $this->render('multi/components/flags.phtml') ?>
|
||||||
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
|
@ -13,6 +13,9 @@ $this->target = array(
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
<?php if (count($objects) === 0): ?>
|
||||||
|
<?= t('No services matching the filter'); ?>
|
||||||
|
<?php else: ?>
|
||||||
<h1> Summary for <?= count($objects) ?> services </h1>
|
<h1> Summary for <?= count($objects) ?> services </h1>
|
||||||
|
|
||||||
<table style="width: 100%; font-size: 0.8em;">
|
<table style="width: 100%; font-size: 0.8em;">
|
||||||
@ -54,4 +57,5 @@ $this->target = array(
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?= $this->render('multi/components/flags.phtml') ?>
|
<?= $this->render('multi/components/flags.phtml') ?>
|
||||||
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user