Files
wdm/build/templates/benutzer_verlauf.html
T
bryan.hoffmann 8713a8c25d
Build und Push Docker Image / build-and-push (push) Successful in 7s
user verwaltung
2026-11-05 13:00:31 +01:00

42 lines
1.4 KiB
HTML
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.
{% extends "base.html" %}
{% block content %}
<div class="top-actions">
<a class="big-btn small neutral" href="{{ url_for('benutzer_verwaltung') }}">&#8592; Zur&uuml;ck zur Benutzerverwaltung</a>
<form method="post" action="{{ url_for('logout') }}">
<button type="submit" class="big-btn small neutral">&#128274; Abmelden</button>
</form>
</div>
{% if not eintraege %}
<div class="empty-state">Noch keine Eintr&auml;ge.</div>
{% else %}
<div class="list-meta">{{ eintraege|length }} Eintr&auml;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 %}