{% extends "tesm_core/base.html" %}
{% block page_title %}Archiv {{ day }}{% endblock %}
{% block page_sub %}{{ rows | length }} archivierte Aenderungen{% endblock %}
{% block breadcrumb %}
<nav class="breadcrumb"><span><a href="{{ url_for('logs.history') }}">Verlauf</a></span><span>{{ day }}</span></nav>
{% endblock %}
{% block content %}
<section class="card">
  <div class="table-wrap">
    <table class="table table--compact" data-behavior="sortable">
      <thead><tr>
        <th class="sortable">Zeit</th><th class="sortable">Benutzer</th>
        <th class="sortable">Aktion</th><th>Ziel</th><th>Detail</th><th>Hash</th>
      </tr></thead>
      <tbody>
        {% for row in rows %}
          <tr>
            <td class="fs-sm nowrap">{{ row.ts | dt }}</td>
            <td class="fs-sm">{{ row.actor }}</td>
            <td class="mono fs-xs">{{ row.action }}</td>
            <td class="fs-sm">{{ row.target }}</td>
            <td class="fs-sm muted">{{ row.detail }}</td>
            <td class="mono fs-xs faint">{{ row.hash[:12] }}</td>
          </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>
</section>
{% endblock %}
