icingaweb2/application/views/scripts/list/applicationlog.phtml

30 lines
949 B
PHTML
Raw Normal View History

<?php if (! $this->compact): ?>
2014-03-19 16:57:11 +01:00
<div class="controls">
<?= $this->tabs; ?>
<?= $this->sortBox; ?>
<?= $this->limiter; ?>
<?= $this->paginator; ?>
<?= $this->filterEditor; ?>
2014-03-19 16:57:11 +01:00
</div>
<?php endif ?>
2014-03-19 16:57:11 +01:00
<div class="content">
<?php if ($this->logData !== null): ?>
2014-03-19 16:57:11 +01:00
<table class="action">
<tbody>
2014-03-19 17:37:37 +01:00
<?php foreach ($this->logData as $value): ?>
<?php $datetime = new Datetime($value->datetime); ?>
2014-03-19 16:57:11 +01:00
<tr class="state">
<td style="width: 6em; text-align: center">
2014-03-19 17:37:37 +01:00
<?= $this->escape($datetime->format('d.m. H:i')) ?><br />
<?= $this->escape($value->loglevel) ?>
2014-03-19 16:57:11 +01:00
</td>
<td>
<?= nl2br($this->escape($value->message), false) ?>
2014-03-19 16:57:11 +01:00
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
</div>