{% 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 "Row" %} | {% trans "Title" %} | {% trans "ISBN" %} | {% trans "Author" %} | {% trans "Shelf" %} | {% trans "Review" %} | {% block import_cols_headers %}{% trans "Book" %} | {% trans "Status" %} | {% endblock %}
---|---|---|---|---|---|---|---|
{% trans "Import preview unavailable." %} |
|||||||
{{ item.index }} | {% endblock %}{{ item.normalized_data.title }} | {{ item.isbn|default:'' }} | {{ 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 %} |
{% block import_cols %}
{% 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 %}
{% endif %}
{% endif %}
|
{% endblock %}