{# Status of one background export job — see ExportStatusHandler (views.py) and export_jobs.py. Rendered both as a full page (direct navigation, e.g. from the "export started" toast's link) and as the self-polling htmx fragment that page embeds. Vars: - status: "queued" | "started" | "finished" | "failed" | "not_found" - result: the job's result dict (only set for "finished"/"failed"), or None - download_url: set only when status == "finished" and the job succeeded - self_url: this same status endpoint's URL, for the "still running" poll #} {% if status in ("queued", "started") %}
{{ _("Rendering your export…") }}
{% elif status == "finished" and download_url %}
{{ _("Your export is ready.") }} {{ _("Download") }}
{% elif status == "failed" %}
{{ result.error if result else _("This export failed.") }}
{% else %}
{{ _("This export no longer exists — it may have expired.") }}
{% endif %}