{% load i18n %} {% comment %} Whole body of the import progress modal (header, figures, footer), served by app_data:data_import_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/exporter_progress.html and app_data/tasks/detail.html). Header and footer are part of this partial on purpose: everything that has to change with the task's state must sit inside the swapped element, or it keeps whatever it was first rendered with (that is how the task-detail Stop button stayed clickable on a finished task). {% endcomment %} {% if is_running %}