From e97a101e48ad4d4a74021adc084ba1933ab806c5 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 22 Jun 2019 22:27:10 +0200 Subject: [PATCH 1/2] manager: show failure only in the running sate (#34235) --- .../manager/templates/authentic2/manager/user_import.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/authentic2/manager/templates/authentic2/manager/user_import.html b/src/authentic2/manager/templates/authentic2/manager/user_import.html index e33de979..6910f143 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_import.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_import.html @@ -57,7 +57,7 @@ {% for report in reports %} {% if report.state != 'running' %}{{ report.created }}{% else %}{{ report.created }}{% endif %} - {{ report.state }} {% if report.state == 'error' %}"{{ report.exception }}"{% endif %} {% if not report.is_running %}!failed before finishing!{% endif %} + {% if report.state == 'running' and not report.is_running %}{% trans "Error, process has been stopped" %}{% else %}{{ report.state }}{% endif %} {% if not report.simulate %}{% endif %} {% if report.simulate %}
{% csrf_token %}
{% endif %} -- 2.20.1