projectbased/updates/baseline/app/Views/admin/audit.php

SHA-256: f8b5f34680d0ca3972a9a0b2976be656ac5e844bc3d30813cebee3db0a569502
<h1 class="h4 mb-3">Audit-Log</h1>
<div class="card p-4">
  <div class="table-responsive">
    <table class="table table-sm align-middle mb-0">
      <thead><tr><th>Zeit</th><th>User</th><th>Aktion</th><th>Meta</th></tr></thead>
      <tbody>
      <?php foreach($rows as $r): ?>
        <tr>
          <td class="muted"><?= htmlspecialchars($r['created_at']) ?></td>
          <td><?= htmlspecialchars($r['display_name'] ?? '—') ?><div class="muted small"><?= htmlspecialchars($r['email'] ?? '') ?></div></td>
          <td><?= htmlspecialchars($r['action']) ?></td>
          <td class="muted" style="max-width:420px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;"><?= htmlspecialchars($r['meta_json'] ?? '') ?></td>
        </tr>
      <?php endforeach; ?>
      </tbody>
    </table>
  </div>
</div>