This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="back-row top">
|
||||
<a class="big-btn small neutral" href="{{ url_for('tablets_verwaltung') }}">← Zurück zu den Tablets</a>
|
||||
{% if tablet_id %}<a class="big-btn small neutral" href="{{ url_for('tablets_verlauf') }}" style="margin-top:10px;">Alle Tablets anzeigen</a>{% endif %}
|
||||
</div>
|
||||
|
||||
{% if tablet_id %}<div class="list-meta">Verlauf für: <strong>{{ filter_name }}</strong></div>{% endif %}
|
||||
{% 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; Aufbewahrung 400 Tage)</div>
|
||||
<div class="table-wrap">
|
||||
<table class="data-table">
|
||||
<thead>
|
||||
<tr><th>Zeit</th><th>Tablet</th><th>Aktion</th><th>Details</th><th>Von (IP)</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>{% if e.tablet_name %}{{ e.tablet_name }}<small class="tablet-seen">{{ e.kurz }}</small>{% else %}–{% endif %}</td>
|
||||
<td>{{ e.aktion }}</td>
|
||||
<td>{{ e.details or '' }}</td>
|
||||
<td>{{ e.von_ip or '' }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="hint">„Von (IP)“ ist die Adresse des Geräts, das die Änderung ausgelöst hat (Admin-PC oder das Tablet selbst).
|
||||
Die Admin-Seite hat ein gemeinsames Passwort, daher gibt es keine Benutzernamen.</p>
|
||||
{% 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