This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="top-actions">
|
||||
<a class="big-btn small neutral" href="{{ url_for('benutzer_verwaltung') }}">← Zurück zur Benutzerverwaltung</a>
|
||||
<form method="post" action="{{ url_for('logout') }}">
|
||||
<button type="submit" class="big-btn small neutral">🔒 Abmelden</button>
|
||||
</form>
|
||||
</div>
|
||||
{% if not eintraege %}
|
||||
<div class="empty-state">Noch keine Einträge.</div>
|
||||
{% else %}
|
||||
<div class="list-meta">{{ eintraege|length }} Einträge (neueste zuerst, max. 500)</div>
|
||||
<div class="table-wrap">
|
||||
<table class="data-table tablet-table">
|
||||
<thead>
|
||||
<tr><th>Zeit</th><th>Von</th><th>Aktion</th><th>Details</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for e in eintraege %}
|
||||
<tr>
|
||||
<td><time data-ts="{{ e.zeitpunkt }}" title="{{ e.zeit_utc }}">{{ e.zeit_utc }}</time></td>
|
||||
<td>{{ e.akteur or '–' }}</td>
|
||||
<td>{{ e.aktion }}</td>
|
||||
<td>{{ e.details or '' }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endif %}
|
||||
<script>
|
||||
(function () {
|
||||
function z2(n) { return (n < 10 ? '0' : '') + n; }
|
||||
var els = document.querySelectorAll('time[data-ts]');
|
||||
for (var i = 0; i < els.length; i++) {
|
||||
var d = new Date(parseInt(els[i].getAttribute('data-ts'), 10) * 1000);
|
||||
els[i].textContent = z2(d.getDate()) + '.' + z2(d.getMonth() + 1) + '.' + d.getFullYear() + ' ' + z2(d.getHours()) + ':' + z2(d.getMinutes()) + ':' + z2(d.getSeconds());
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user