{% extends 'generic/_base.html' %} {% load helpers %} {% load i18n %} {% block title %}{% trans "NDX Sync Status" %}{% endblock %} {% block controls %}
{% if perms.ndx.sync_importrecord %}
{% csrf_token %}
{% endif %} {% if can_import and check_required %}
{% csrf_token %}
{% endif %}
{% endblock controls %} {% block content %}

{% trans "Connection" %}

{% trans "API URL" %} {{ api_url }}
{% trans "Token" %} {% if not auth_error %} {% trans "Valid" %} {% elif auth_error.is_auth %} {% trans "Invalid" %} {% else %} {% trans "Unknown" %} {% endif %} {% if auth_error %}
{{ auth_error.message }}
{% endif %}
{% trans "Tier" %} {{ tier|placeholder }}

{% trans "Imported Types" %}

{% trans "Imported" %} {{ imported_count }}
{% trans "Check required" %} {{ check_required }}
{% trans "Unknown" %} {{ unknown }}

{% trans "Last Sync" %}

{% if job %} {% if sync_error %} {% endif %}
{% trans "Job" %} #{{ job.pk }}
{% trans "Status" %} {% badge job.get_status_display bg_color=job.get_status_color %}
{% trans "Completed" %} {{ job.completed|isodatetime }}
{% trans "Error" %} {{ sync_error }}
{% trans "Catalog entries" %} {{ catalog_count|placeholder }}
{% trans "Status changes" %} {{ changed_count|placeholder }}
{% else %}
{% trans "The catalog has not been synchronized yet." %}
{% endif %}
{% if running_job or next_job %}

{% trans "Scheduled" %}

{% if running_job %} {% endif %} {% if next_job %} {% endif %}
{% trans "In progress" %} #{{ running_job.pk }} {% badge running_job.get_status_display bg_color=running_job.get_status_color %}
{% trans "Next sync" %} {{ next_job.scheduled|isodatetime }}
{% endif %}
{% endblock content %}