{% extends 'layout.html' %} {% load i18n %} {% load humanize %} {% block title %}{% trans "Import Status" %}{% endblock %} {% block content %}{% spaceless %}

{% trans "Import Status" %}

{% trans "Back to imports" %}
{% trans "Import started:" %}
{{ job.created_date | naturaltime }}
{% if job.complete %}
{% trans "Import completed:" %}
{{ task.date_done | naturaltime }}
{% elif task.failed %}
{% trans "TASK FAILED" %}
{% endif %}
{% if not job.complete %}

{% trans "Import still in progress." %}
{% trans "(Hit reload to update!)" %}

{% endif %}
{% if failed_items %}

{% trans "Failed to load" %}

{% if not job.retry %}
{% csrf_token %} {% with failed_count=failed_items|length %} {% if failed_count > 10 %}

{% blocktrans %}Jump to the bottom of the list to select the {{ failed_count }} items which failed to import.{% endblocktrans %}

{% endif %} {% endwith %}
    {% for item in failed_items %}
  • {% endfor %}

{% else %} {% endif %}
{% endif %}
{% if job.complete %}

{% trans "Successfully imported" %}

{% else %}

{% trans "Import Progress" %}

{% endif %} {% for item in items %} {% endfor %}
{% trans "Book" %} {% trans "Title" %} {% trans "Author" %}
{% if item.book %} {% include 'snippets/book_cover.html' with book=item.book cover_class='is-h-s' size='small' %} {% endif %} {{ item.data.Title }} {{ item.data.Author }} {% if item.book %} {% trans "Imported" %} {% endif %}
{% endspaceless %}{% endblock %} {% block scripts %} {% endblock %}