Indicate retry on status page

This commit is contained in:
Mouse Reeve 2021-11-12 14:38:41 -08:00
parent a65f07e0bf
commit d8197cdcfa

View file

@ -7,7 +7,11 @@
{% block content %}{% spaceless %} {% block content %}{% spaceless %}
<header class="block"> <header class="block">
{% if job.retry %}
<h1 class="title">{% trans "Retry Status" %}</h1>
{% else %}
<h1 class="title">{% trans "Import Status" %}</h1> <h1 class="title">{% trans "Import Status" %}</h1>
{% endif %}
<a href="{% url 'import' %}" class="has-text-weight-normal help subtitle is-link">{% trans "Back to imports" %}</a> <a href="{% url 'import' %}" class="has-text-weight-normal help subtitle is-link">{% trans "Back to imports" %}</a>
<div class="block"> <div class="block">
@ -33,7 +37,7 @@
</div> </div>
{% endif %} {% endif %}
{% if complete and fail_count %} {% if complete and fail_count and not job.retry %}
<div class="notification is-warning"> <div class="notification is-warning">
{% blocktrans trimmed count counter=fail_count with display_counter=fail_count|intcomma %} {% blocktrans trimmed count counter=fail_count with display_counter=fail_count|intcomma %}
{{ display_counter }} item failed to import. {{ display_counter }} item failed to import.