{# Run-history fragment: the automation's recent runs (Jobs tagged with its id). Self-polls every 5s and swaps itself, so in-progress runs appear and tick up to completion without a manual reload. Rendered inline on first load (included by automations.html) and re-served by the `automations_runs` endpoint. #} {% from "components/run_history.html" import run_history_list with context %}

{{ _("Run history") }}

{% if recent_runs %} {{ run_history_list(recent_runs, url_for('automations_show', slug=selected.slug)) }} {% else %}

{% if selected.enabled %} {{ _("No runs yet.") }} {% else %} {{ _("No runs yet — this automation is disabled.") }} {% endif %}

{% endif %}