{% extends "base.html" %} {% block title %}Email-Log{% endblock %} {% block content %}
{% if not journal_rows %}

📭

Keine Journal-Einträge vorhanden.

{% else %}
{% for row in journal_rows %} {% endfor %}
Empfangen Von Betreff Agent Status
{{ row.received_at[:16] if row.received_at else '—' }} {{ row.sender or '—' }} {{ row.subject or '—' }} {% if row.agent_key %} {{ row.agent_key }} {% else %} {% endif %} {% if row.status == 'completed' %} ✓ completed {% elif row.status == 'skipped' %} — skipped {% elif row.status == 'error' %} ✗ error {% elif row.status == 'queued' %} ⏳ queued {% else %} {{ row.status }} {% endif %}
{% endif %}
{% if not sent_rows %}

📤

Noch keine gesendeten Emails im Log.
Ab jetzt werden alle ausgehenden Emails hier gespeichert.

{% else %}
{% for row in sent_rows %} {% endfor %}
Gesendet An Betreff Ausgelöst von Status
{{ row.sent_at[:16] if row.sent_at else '—' }} {{ row.to_address or '—' }} {{ row.subject or '—' }} {{ row.triggered_by or 'manual' }} {% if row.task_id %}Task #{{ row.task_id }}{% endif %} {% if row.status == 'sent' %} ✓ gesendet {% elif row.status == 'error' %} ✗ Fehler {% else %} {{ row.status }} {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}