{% extends 'layout.html' %} {% load bookwyrm_tags %} {% load humanize %} {% block content %}

{% trans "Import Status" %}

{% 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 %}
{% else %} {% endif %}
{% endif %}

{% trans "Successfully imported" %}

{% for item in items %} {% endfor %}
{% trans "Book" %} {% trans "Title" %} {% trans "Author" %}
{% if item.book %} {% include 'snippets/book_cover.html' with book=item.book size='small' %} {% endif %} {{ item.data|dict_key:'Title' }} {{ item.data|dict_key:'Author' }} {% if item.book %} {% trans "Imported" %} {% endif %}
{% endblock %}