mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
monitoring: Update content markup in downtimes
This commit is contained in:
parent
f135e4d0d2
commit
bd3d40d46d
@ -4,7 +4,7 @@ use Icinga\Module\Monitoring\Object\Service;
|
|||||||
|
|
||||||
if (! $this->compact): ?>
|
if (! $this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs ?>
|
<?= $this->tabs ?>
|
||||||
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
<?= $this->render('list/components/selectioninfo.phtml') ?>
|
||||||
<?= $this->paginator ?>
|
<?= $this->paginator ?>
|
||||||
<div class="sort-controls-container">
|
<div class="sort-controls-container">
|
||||||
@ -15,9 +15,13 @@ if (! $this->compact): ?>
|
|||||||
</div>
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<table data-base-target="_next"
|
<?php if (! $downtimes->hasResult()): ?>
|
||||||
class="table-row-selectable state-table multiselect common-table"
|
<p><?= $this->translate('No downtimes found matching the filter.') ?></p>
|
||||||
data-icinga-multiselect-url="<?= $this->href('monitoring/downtimes/show'); ?>"
|
</div>
|
||||||
|
<?php return; endif ?>
|
||||||
|
<table class="common-table state-table table-row-selectable multiselect"
|
||||||
|
data-base-target="_next"
|
||||||
|
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">
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -29,25 +33,26 @@ if (! $this->compact): ?>
|
|||||||
$this->isService = false;
|
$this->isService = false;
|
||||||
$this->stateName = Host::getStateText($downtime->host_state);
|
$this->stateName = Host::getStateText($downtime->host_state);
|
||||||
}
|
}
|
||||||
|
// Set downtime for partials
|
||||||
$this->downtime = $downtime;
|
$this->downtime = $downtime;
|
||||||
?>
|
?>
|
||||||
<tr href="<?= $this->href('monitoring/downtime/show', array('downtime_id' => $downtime->id)) ?>">
|
<tr href="<?= $this->href('monitoring/downtime/show', array('downtime_id' => $downtime->id)) ?>">
|
||||||
<?= $this->render('partials/downtime/downtime-header.phtml'); ?>
|
<?= $this->render('partials/downtime/downtime-header.phtml') ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<?php if (! $downtimes->hasResult()): ?>
|
<?php if ($downtimes->hasMore()): ?>
|
||||||
<?= $this->translate('No downtimes found matching the filter, maybe the downtime already expired.'); ?>
|
<div class="action-links">
|
||||||
<?php elseif ($downtimes->hasMore()): ?>
|
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$this->translate('Show More'),
|
$this->translate('Show More'),
|
||||||
$this->url()->without(array('view', 'limit')),
|
$this->url()->without(array('view', 'limit')),
|
||||||
null,
|
null,
|
||||||
array(
|
array(
|
||||||
'data-base-target' => '_next',
|
'class' => 'action-link',
|
||||||
'class' => 'pull-right action-link'
|
'data-base-target' => '_next'
|
||||||
)
|
)
|
||||||
); ?>
|
) ?>
|
||||||
|
</div>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user