{% extends 'settings/layout.html' %} {% load i18n %} {% load utilities %} {% load humanize %} {% block title %}{% trans "Imports" %}{% endblock %} {% block header %} {% trans "Imports" %} {% endblock %} {% block panel %}
{% if site.imports_enabled %}
{% trans "Disable starting new imports" %}
{% trans "This is only intended to be used when things have gone very wrong with imports and you need to pause the feature while addressing issues." %} {% trans "While imports are disabled, users will not be allowed to start new imports, but existing imports will not be affected." %} {% trans "This setting prevents both book imports and user imports." %}
{% csrf_token %}
{% else %}
{% trans "Users are currently unable to start new imports" %}
{% csrf_token %}
{% endif %}
{% trans "Limit the amount of imports" %}
{% trans "Some users might try to import a large number of books, which you want to limit." %} {% trans "Set the value to 0 to not enforce any limit." %}
{% csrf_token %}
{% if site.user_exports_enabled %}
{% trans "Disable starting new user exports" %}
{% trans "This is only intended to be used when things have gone very wrong with exports and you need to pause the feature while addressing issues." %} {% trans "While exports are disabled, users will not be allowed to start new user exports, but existing exports will not be affected." %}
{% csrf_token %}
{% trans "Limit how often users can import and export" %}
{% trans "Some users might try to run user imports or exports very frequently, which you want to limit." %} {% trans "Set the value to 0 to not enforce any limit." %}
{% csrf_token %}
{% else %}

{% trans "Users are currently unable to start new user exports. This is the default setting." %}

{% if use_azure %}

{% trans "It is not currently possible to provide user exports when using Azure storage." %}

{% endif %}
{% csrf_token %}
{% endif %}

{% trans "Book Imports" %}

{% url 'settings-imports' status as url %} {% if status != "active" %} {% endif %} {% if status == "active" %} {% endif %} {% for import in imports %} {% if status != "active" %} {% endif %} {% if status == "active" %} {% endif %} {% endfor %} {% if not imports %} {% endif %}
{% trans "ID" %} {% trans "User" as text %} {% include 'snippets/table-sort-header.html' with field="user" sort=sort text=text %} {% trans "Date Created" as text %} {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} {% trans "Date Updated" %} {% trans "Items" %} {% trans "Pending items" %} {% trans "Successful items" %} {% trans "Failed items" %} {% trans "Actions" %}
{{ import.id }} {{ import.user|username }} {{ import.created_date }}{{ import.updated_date }}{{ import.item_count|intcomma }} {{ import.pending_item_count|intcomma }} {{ import.successful_item_count|intcomma }} {{ import.failed_item_count|intcomma }} {% join "complete" import.id as modal_id %} {% include "settings/imports/complete_import_modal.html" with id=modal_id %}
{% trans "No matching imports found." %}
{% include 'snippets/pagination.html' with page=imports path=request.path %}

{% trans "User Imports" %}

{% url 'settings-imports' status as url %} {% if status != "active" %} {% endif %} {% if status == "active" %} {% else %} {% endif %} {% for import in user_imports %} {% if status != "active" %} {% endif %} {% if status == "active" %} {% else %} {% endif %} {% endfor %} {% if not user_imports %} {% endif %}
{% trans "ID" %} {% trans "User" as text %} {% include 'snippets/table-sort-header.html' with field="user" sort=sort text=text %} {% trans "Date Created" as text %} {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} {% trans "Date Updated" %} {% trans "Actions" %}{% trans "Status" %}
{{ import.id }} {{ import.user|username }} {{ import.created_date }}{{ import.updated_date }} {% join "complete" import.id as modal_id %} {% include "settings/imports/complete_user_import_modal.html" with id=modal_id %} {{ import.status }}
{% trans "No matching imports found." %}
{% include 'snippets/pagination.html' with page=user_imports path=request.path %}
{% endblock %}