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

{% trans "Import Books" %}

{% if recent_avg_hours or recent_avg_minutes %}

{% if recent_avg_hours %} {% blocktrans trimmed with hours=recent_avg_hours|floatformat:0|intcomma %} On average, recent imports have taken {{ hours }} hours. {% endblocktrans %} {% else %} {% blocktrans trimmed with minutes=recent_avg_minutes|floatformat:0|intcomma %} On average, recent imports have taken {{ minutes }} minutes. {% endblocktrans %} {% endif %}

{% endif %}
{% csrf_token %}

{% blocktrans trimmed %} You can download your Goodreads data from the Import/Export page of your Goodreads account. {% endblocktrans %}

{{ import_form.csv_file }}
{% include 'snippets/privacy_select.html' with no_label=True privacy_uuid="import" %}

{% trans "Recent Imports" %}

{% if not jobs %} {% endif %} {% for job in jobs %} {% endfor %}
{% trans "Date Created" %} {% trans "Last Updated" %} {% trans "Items" %} {% trans "Status" %}
{% trans "No recent imports" %}
{{ job.created_date }} {{ job.updated_date }} {{ job.item_count|intcomma }} {% if job.status %} {{ job.status }} {{ job.status_display }} {% elif job.complete %} {% trans "Complete" %} {% else %} {% trans "Active" %} {% endif %}
{% include 'snippets/pagination.html' with page=jobs path=request.path %}
{% endblock %}