35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
|
|
<?php /** @var array $entries */ ?>
|
|||
|
|
<div class="page-head">
|
|||
|
|
<div>
|
|||
|
|
<h1>Verwaltung</h1>
|
|||
|
|
<p class="muted">Die letzten <?= count($entries) ?> Ereignisse.</p>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<?php $active = 'audit'; require HUB_ROOT . '/views/_admin_nav.php'; ?>
|
|||
|
|
|
|||
|
|
<section class="panel">
|
|||
|
|
<?php if (!$entries): ?>
|
|||
|
|
<p class="muted">Noch keine Einträge.</p>
|
|||
|
|
<?php else: ?>
|
|||
|
|
<div class="table-wrap">
|
|||
|
|
<table class="list compact">
|
|||
|
|
<thead>
|
|||
|
|
<tr><th>Zeit</th><th>Akteur</th><th>Aktion</th><th>Objekt</th><th>Detail</th><th>IP</th></tr>
|
|||
|
|
</thead>
|
|||
|
|
<tbody>
|
|||
|
|
<?php foreach ($entries as $entry): ?>
|
|||
|
|
<tr>
|
|||
|
|
<td><?= e(fmt_dt($entry['created_at'])) ?></td>
|
|||
|
|
<td><?= e($entry['actor_name'] ?: '–') ?></td>
|
|||
|
|
<td><code><?= e($entry['action']) ?></code></td>
|
|||
|
|
<td><?= e(trim(($entry['subject_type'] ?? '') . ' ' . ($entry['subject_id'] ?? ''))) ?: '–' ?></td>
|
|||
|
|
<td><?= e($entry['detail'] ?: '–') ?></td>
|
|||
|
|
<td><?= e($entry['ip'] ?: '–') ?></td>
|
|||
|
|
</tr>
|
|||
|
|
<?php endforeach; ?>
|
|||
|
|
</tbody>
|
|||
|
|
</table>
|
|||
|
|
</div>
|
|||
|
|
<?php endif; ?>
|
|||
|
|
</section>
|