{% from "partials/components/ui_macros.html" import modal_title, modal_footer_simple %} {# core/ui/templates/partials/log_modal.html Log-Modal mit Live-Streaming (SSE) und statischem Datum-Wähler. Standard-URL-Konventionen: Statisch: GET /api/{module}/{item_id}/logs Nach Datum: GET /api/{module}/{item_id}/logs/{date} SSE-Stream: GET /api/{module}/{item_id}/logs/stream Variablen: module – Modulname item_id – Item-ID description – Anzeigename (für Titel) live – bool: SSE-Live-Modus lines – list[str]: Log-Zeilen (statischer Modus) dates – list[str]: verfügbare Datum-Dateien selected – str: aktuell gewähltes Datum #}
{{ modal_title(title="Log – " + description, icon="log") }} {% if live %}
Live Wird aktualisiert…
{% include "partials/log_content.html" %}
{% else %} {% if dates %}
{{ dates|length }} Run{{ 'S' if dates|length != 1 else '' }}
{% endif %}
{% include "partials/log_content.html" %}
{% if dates %} {% endif %} {% if not dates %}
Noch keine Logs vorhanden – erscheinen nach dem ersten Ausführen.
{% endif %} {% endif %} {{ modal_footer_simple(close_label="Schließen") }}