rinkplanner/hub/views/admin_audit.php
torsten 055a2919c3 feat: Kür-Hub mit Einladungen, Uploads und API
- 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
2026-11-11 13:14:26 +01:00

34 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>