rinkplanner/hub/views/admin_audit.php
torsten 9819311403 feat: Website und Hub zweisprachig (Deutsch/Englisch)
Website (rinkplanner.programmschmiede.de) liegt jetzt im Repo unter web/:
Sprachweiche nach Accept-Language (der User-Agent enthält keine Sprache),
/de/ und /en/ als eigene URLs mit hreflang, Cookie für die manuelle Wahl,
Texte in web/i18n.php, Markup in web/template.php. Deployment über
tools/deploy_web.sh (--sync, --check, --all); /index.html leitet weiter.

Hub: optionale englische Oberfläche über den DE/EN-Umschalter, Cookie
RHUB_LANG, Route /language. Alle Texte (Views, Meldungen, Validierung,
API-messages) stehen in hub/app/i18n_strings.php und laufen über t();
Datum und Zahlen folgen der Sprache. Die API behält ihre code-Felder und
antwortet ohne Cookie weiter deutsch.

deploy_hub.sh --check prüft jetzt Schlüsselparität und fehlende t()-Schlüssel.
Doku: docs/website.md neu, docs/hub.md und AGENTS.md ergänzt.
2026-11-12 22:38:32 +01:00

41 lines
1.6 KiB
PHP
Raw Permalink 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><?= e(t('admin.title')) ?></h1>
<p class="muted"><?= e(t('admin.audit_lede', ['count' => count($entries)])) ?></p>
</div>
</div>
<?php $active = 'audit'; require HUB_ROOT . '/views/_admin_nav.php'; ?>
<section class="panel">
<?php if (!$entries): ?>
<p class="muted"><?= e(t('admin.audit_empty')) ?></p>
<?php else: ?>
<div class="table-wrap">
<table class="list compact">
<thead>
<tr>
<th><?= e(t('table.time')) ?></th>
<th><?= e(t('table.actor')) ?></th>
<th><?= e(t('table.action')) ?></th>
<th><?= e(t('table.subject')) ?></th>
<th><?= e(t('table.detail')) ?></th>
<th><?= e(t('table.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>