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
This commit is contained in:
parent
e79b477ee0
commit
055a2919c3
38 changed files with 5111 additions and 0 deletions
34
hub/views/admin_audit.php
Normal file
34
hub/views/admin_audit.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue