- PHP-App unter hub/ für rinkplanner-hub.programmschmiede.de - MariaDB-Schema, Argon2id, Sessions, CSRF und Ratenbegrenzung - Einladungscodes, Admin-Bereich und Kür-Pakete mit Audiodatei - JSON-API v1 mit Bearer-Tokens für die Godot-App - Deployment und Erstinstallation über tools/deploy_hub.sh - Doku und Credentials-Vorlage ergänzt
34 lines
1.3 KiB
PHP
34 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>
|