mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Reorganised eventhistory view script, still far from being perfect
This commit is contained in:
parent
635cdcbbc5
commit
5c5268651c
@ -1,33 +1,18 @@
|
|||||||
<div class="row">
|
<div class="controls">
|
||||||
<div class="pull-left">
|
<?= $this->tabs->render($this); ?>
|
||||||
<h1>History</h1>
|
<?= $this->filterBox->render($this); ?>
|
||||||
</div>
|
<?= $this->sortControl->render($this); ?>
|
||||||
<div class="pull-right">
|
<?= $this->selectionToolbar('single'); ?>
|
||||||
<?= $this->tabs->render($this); ?>
|
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<?php if (!empty($history)): ?>
|
|
||||||
<div data-icinga-component="app/mainDetailGrid" data-icinga-grid-selection-type="single">
|
|
||||||
|
|
||||||
<div class="container pull-left">
|
<div class="content">
|
||||||
<div class="row">
|
<?php if (empty($history)): ?>
|
||||||
<div class="col-md-5">
|
No entries found
|
||||||
<?= $this->filterBox->render($this); ?>
|
</div>
|
||||||
</div>
|
<?php return; endif ?>
|
||||||
<div class="col-md-7">
|
|
||||||
<?= $this->sortControl->render($this); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
<table class="action">
|
||||||
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<?= $this->selectionToolbar('single'); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table class="table table-condensed pull-left">
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($history as $event): ?>
|
<?php foreach ($history as $event): ?>
|
||||||
<?php
|
<?php
|
||||||
@ -91,8 +76,8 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr class="state">
|
||||||
<td <?= !empty($class) ? 'class="' . $class . '"' : '' ?>">
|
<td style="width: 6em;" <?= !empty($class) ? 'class="' . $class . '"' : '' ?>">
|
||||||
<?= date('d.m. H:i', $event->timestamp); ?>
|
<?= date('d.m. H:i', $event->timestamp); ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -123,11 +108,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<? endforeach; ?>
|
<? endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="container pull-left">
|
</div>
|
||||||
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user