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

{% block page_title %} {% if job.retry %} {% trans "Retry Status" %} {% else %} {% trans "Import Status" %} {% endif %} {% endblock %}

{% trans "Import started:" %}
{{ job.created_date | naturaltime }}
{% if not job.complete and show_progress %}
{% trans "In progress" %} {% trans "Refresh" %}
{{ percent }} % {{ percent }}%
{% endif %} {% if not job.complete %}
{% csrf_token %}
{% endif %} {% if manual_review_count and not legacy %}
{% blocktrans trimmed count counter=manual_review_count with display_counter=manual_review_count|intcomma %} {{ display_counter }} item needs manual approval. {% plural %} {{ display_counter }} items need manual approval. {% endblocktrans %} {% trans "Review items" %}
{% endif %} {% if job.complete and fail_count and not job.retry and not legacy %}
{% 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 actions %}{% endblock %}
{% if job.source == "OpenLibrary" %} {% endif %} {% block import_cols_headers %} {% endblock %} {% if legacy %} {% else %} {% if not items %} {% endif %} {% for item in items %} {% block index_col %} {% endblock %} {% if job.source == "OpenLibrary" %} {% endif %} {% block import_cols %} {% endblock %} {% block action_row %}{% endblock %} {% endfor %} {% endif %}
{% trans "Row" %} {% trans "Title" %} {% trans "ISBN" %} {% trans "Openlibrary key" %} {% trans "Author" %} {% trans "Shelf" %} {% trans "Review" %} {% trans "Book" %} {% trans "Status" %}

{% trans "Import preview unavailable." %}

{% trans "No items currently need review" %}
{{ item.index }} {{ item.normalized_data.title }} {{ item.isbn|default:'' }} {{ item.openlibrary_key }} {{ item.normalized_data.authors }} {{ item.normalized_data.shelf }} {% if item.rating %}

{% include 'snippets/stars.html' with rating=item.rating %}

{% endif %} {% if item.review %}

{{ item.review|truncatechars:100 }}

{% endif %} {% if item.linked_review %} {% trans "View imported review" %} {% endif %}
{% 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 %} {% if item.book_guess %} {% trans "Needs manual review" %} {% else %} {{ item.fail_reason }} {% endif %} {% else %}
{% trans "Pending" %} {# retry option if an item appears to be hanging #} {% if job.created_date != job.updated_date and inactive_time > 24 %}
{% csrf_token %}
{% endif %}
{% endif %}
{% if legacy %}
{% csrf_token %}

{% trans "This import is in an old format that is no longer supported. If you would like to troubleshoot missing items from this import, click the button below to update the import format." %}

{% endif %}
{% if not legacy %}
{% include 'snippets/pagination.html' with page=items path=page_path %}
{% endif %} {% endspaceless %}{% endblock %}