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

{% trans "Retry Status" %}

{% else %}

{% trans "Import Status" %}

{% endif %} {% trans "Back to imports" %}
{% trans "Import started:" %}
{{ job.created_date | naturaltime }}
{% if not complete %}
{% trans "In progress" %} {% trans "Refresh" %}
{{ percent }}% {{ percent }}%
{% endif %} {% if complete and fail_count and not job.retry %}
{% blocktrans trimmed count counter=fail_count with display_counter=fail_count|intcomma %} {{ display_counter }} item failed to import. {% plural %} {{ display_counter }} items failed to import. {% endblocktrans %} {% trans "View and troubleshoot failed items." %}
{% endif %}

{% block page_title %} {% trans "Your Import" %} {% endblock %}

{% block actions %}{% endblock %} {% for item in items %} {% endfor %}
{% trans "Row" %} {% trans "Title" %} {% trans "Author" %} {% trans "Book" %} {% trans "Status" %}
{{ item.index }} {{ item.data.Title }} {{ item.data.Author }} {% if item.book %} {% include 'snippets/book_cover.html' with book=item.book cover_class='is-h-s' size='small' %} {% endif %} {% if item.book %} {% trans "Imported" %} {% elif item.fail_reason %} {{ item.fail_reason }} {% else %} {% trans "Pending" %} {% endif %}
{% include 'snippets/pagination.html' with page=items %}
{% endspaceless %}{% endblock %} {% block scripts %} {% endblock %}