{% if state.status in ('pending', 'running') %}

Importing {{ state.filename or "file" }}

{{ state.processed_rows }} row{{ "s" if state.processed_rows != 1 else "" }} processed

Works created
{{ state.created_works }}
Copies added
{{ state.added_copies }}
Skipped duplicates
{{ state.skipped_duplicates }}
{% if state.enriched_rows %}
Enriched
{{ state.enriched_rows }}
{% endif %}
{% elif state.status == 'failed' %}

Import failed: {{ state.error }}

← Back to import form

{% else %}

Import report

{% with report = state.report %}{% include "admin/_import_report.html" %}{% endwith %}
{% endif %}