{% extends "page_view.html" %} {% load i18n humanize %} {% block page.actions %} {% translate "Past imports" %} {% endblock page.actions %} {% block page.content %}
{% if job.status == "undoing" %}{% translate "The undo runs in the background. You can leave this page; the undo carries on and the import is listed under Past imports." %} {% elif job.status == "importing" %}{% translate "The import runs in the background. You can leave this page; the import carries on and is listed under Past imports." %} {% else %}{% translate "Each row is matched to a record and every cell is read. Nothing is written yet. You can leave this page and come back." %}{% endif %}
{{ job.error }}
{{ job.error }}
{% endif %}{% translate "A file goes in whole or not at all, so nothing has been written. Download the file with each problem written beside its row, correct it, and upload it again." %}
{% blocktranslate count n=job.row_count %}The row matches a stored record exactly, or is left out.{% plural %}All {{ n }} rows match stored records exactly, or are left out.{% endblocktranslate %}
{% if job.summary.new and job.summary.update %} {% blocktranslate with a=job.summary.new u=job.summary.update type=job.type_name %}Importing adds {{ a }} new {{ type }} and changes {{ u }}.{% endblocktranslate %} {% elif job.summary.new %} {% blocktranslate with a=job.summary.new type=job.type_name %}Importing adds {{ a }} new {{ type }}.{% endblocktranslate %} {% else %} {% blocktranslate with u=job.summary.update type=job.type_name %}Importing changes {{ u }} {{ type }}. It adds none.{% endblocktranslate %} {% endif %} {% if job.summary.unchanged %}{% blocktranslate count n=job.summary.unchanged %}{{ n }} row matches its record already and is left alone.{% plural %}{{ n }} rows match their records already and are left alone.{% endblocktranslate %}{% endif %} {% translate "Look through the rows below first." %}
{% blocktranslate with who=job.imported_by.get_full_name|default:job.imported_by when=job.imported_at|naturaltime %}Imported by {{ who }} {{ when }}.{% endblocktranslate %}
{% translate "The undo did not go through and nothing was changed. A record the import added or changed may have been edited or deleted since, or a sample it added may now have measurements; undoing would lose that work." %}
{% blocktranslate with who=job.undone_by.get_full_name|default:job.undone_by when=job.undone_at|naturaltime %}Undone by {{ who }} {{ when }}. The records it added were deleted and the ones it changed got their earlier values back.{% endblocktranslate %}
{% translate "It was checked and then set aside. Nothing from it was written." %}
{{ row.note }}
{% elif row.cells %}{% translate "No rows have this outcome." %}
{% endif %}