{% load i18n %} {% comment %} Whole body of the export progress modal (header, figures, footer), served by app_data:data_exporter_progress. Self-refreshing while the task is live: the polling attributes are omitted once it is terminal, which is what stops the loop (same idiom as app_data/tasks/detail.html). The modal header is part of this partial on purpose - it is what lets the title follow the task's state rather than staying on "in progress" for ever. {% endcomment %} {% if is_running %}
{% else %}
{% endif %} {% comment %} While the export is RUNNING: Abort + Hide. Hiding is safe for everyone now that the Tasks menu needs no permission - the task stays followable there and its result is downloadable from it, so a dismissed modal no longer orphans a run. (Until 5.4.0 the Hide button was hidden from users without p_task_view, for whom this modal was the only view of their export.) Once the task is TERMINAL the export is over and Close replaces both: there is nothing left to abort, and the result link is right there in the body. The modal carries data-bs-backdrop="static", data-bs-keyboard="false" and no close "x", so these buttons are the only way out. {% endcomment %}