From 51b986eaa9b6db239f97d93005ff7cbdfb423730 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Sat, 22 Jun 2019 22:27:10 +0200 Subject: [PATCH] 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..7a86040c 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 %} + {{ report.state }} {% if report.state == 'error' %}"{{ report.exception }}"{% endif %} {% if report.state == 'running' and not report.is_running %}!failed before finishing!{% endif %} {% if not report.simulate %}{% endif %} {% if report.simulate %}
{% csrf_token %}
{% endif %} -- 2.20.1