mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
parent
e67420e8bf
commit
3e77384700
@ -16,7 +16,7 @@ if (! $this->compact): ?>
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<table data-base-target="_next"
|
<table data-base-target="_next"
|
||||||
class="table-row-selectable multiselect"
|
class="table-row-selectable state-table multiselect"
|
||||||
data-icinga-multiselect-url="<?= $this->href('monitoring/downtimes/show'); ?>"
|
data-icinga-multiselect-url="<?= $this->href('monitoring/downtimes/show'); ?>"
|
||||||
data-icinga-multiselect-controllers="<?= $this->href("monitoring/downtimes") ?>"
|
data-icinga-multiselect-controllers="<?= $this->href("monitoring/downtimes") ?>"
|
||||||
data-icinga-multiselect-data="downtime_id">
|
data-icinga-multiselect-data="downtime_id">
|
||||||
|
@ -22,7 +22,7 @@ if (! $this->compact): ?>
|
|||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
<table data-base-target="_next"
|
<table data-base-target="_next"
|
||||||
class="table-row-selectable multiselect"
|
class="table-row-selectable state-table 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">
|
||||||
|
@ -18,7 +18,7 @@ if (! $this->compact): ?>
|
|||||||
<p><?= $this->translate('No notifications found matching the filter.') ?></p>
|
<p><?= $this->translate('No notifications found matching the filter.') ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
<table data-base-target="_next" class="table-row-selectable">
|
<table data-base-target="_next" class="table-row-selectable state-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($notifications->peekAhead($this->compact) as $notification):
|
<?php foreach ($notifications->peekAhead($this->compact) as $notification):
|
||||||
if (isset($notification->service_description)) {
|
if (isset($notification->service_description)) {
|
||||||
|
@ -23,7 +23,7 @@ if (! $this->compact): ?>
|
|||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
<table data-base-target="_next"
|
<table data-base-target="_next"
|
||||||
class="table-row-selectable multiselect<?php if ($this->compact): ?> compact<?php endif ?>"
|
class="table-row-selectable state-table multiselect<?php if ($this->compact): ?> compact<?php endif ?>"
|
||||||
data-icinga-multiselect-url="<?= $this->href('monitoring/services/show') ?>"
|
data-icinga-multiselect-url="<?= $this->href('monitoring/services/show') ?>"
|
||||||
data-icinga-multiselect-controllers="<?= $this->href('monitoring/services') ?>"
|
data-icinga-multiselect-controllers="<?= $this->href('monitoring/services') ?>"
|
||||||
data-icinga-multiselect-data="service,host">
|
data-icinga-multiselect-data="service,host">
|
||||||
|
@ -31,7 +31,7 @@ $history->limit($limit * $page);
|
|||||||
<p><?= $this->translate('No historical events found matching the filter.') ?></p>
|
<p><?= $this->translate('No historical events found matching the filter.') ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
<table data-base-target="_next"<?php if (isset($tableCssClass)): ?> class="<?=$tableCssClass ?>"<?php endif ?>>
|
<table class="state-table" data-base-target="_next"<?php if (isset($tableCssClass)): ?> class="<?=$tableCssClass ?>"<?php endif ?>>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($history->peekAhead() as $event):
|
<?php foreach ($history->peekAhead() as $event):
|
||||||
$icon = '';
|
$icon = '';
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
use Icinga\Module\Monitoring\Object\Host;
|
use Icinga\Module\Monitoring\Object\Host;
|
||||||
/** @var Host $object */
|
/** @var Host $object */
|
||||||
?>
|
?>
|
||||||
<table>
|
<table class="state-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
|
<td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
|
||||||
<div class="state-header"><?= Host::getStateText($object->host_state, true) ?></div>
|
<div class="state-header"><?= Host::getStateText($object->host_state, true) ?></div>
|
||||||
|
@ -3,7 +3,7 @@ use Icinga\Module\Monitoring\Object\Host;
|
|||||||
use Icinga\Module\Monitoring\Object\Service;
|
use Icinga\Module\Monitoring\Object\Service;
|
||||||
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
|
/** @var \Icinga\Module\Monitoring\Object\MonitoredObject $object */
|
||||||
?>
|
?>
|
||||||
<table>
|
<table class="state-table">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
|
<td class="state-col state-<?= Host::getStateText($object->host_state) ?><?= $object->host_handled ? ' handled' : '' ?>">
|
||||||
<div class="state-label"><?= Host::getStateText($object->host_state, true) ?></div>
|
<div class="state-label"><?= Host::getStateText($object->host_state, true) ?></div>
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
<?= $this->translate('Check Source') ?>
|
<?= $this->translate('Check Source') ?>
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
|
||||||
<?php if ($object->is_reachable !== null) {
|
<?php if ($object->is_reachable !== null) {
|
||||||
if ((bool) $object->is_reachable) {
|
if ((bool) $object->is_reachable) {
|
||||||
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok'));
|
echo $this->icon('circle', $this->translate('Is reachable'), array('class' => 'fg-color-ok'));
|
||||||
@ -16,7 +15,6 @@
|
|||||||
<?php if ($object->is_reachable !== null): ?>
|
<?php if ($object->is_reachable !== null): ?>
|
||||||
<span class="check-source-meta"><?= (bool) $object->is_reachable ? $this->translate('is reachable') : $this->translate('is not reachable') ?></span>
|
<span class="check-source-meta"><?= (bool) $object->is_reachable ? $this->translate('is reachable') : $this->translate('is not reachable') ?></span>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</p>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user