Projet

Général

Profil

0001-manager-show-failure-only-in-the-running-sate-34235.patch

Benjamin Dauvergne, 22 juin 2019 22:27

Télécharger (1,78 ko)

Voir les différences:

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(-)
src/authentic2/manager/templates/authentic2/manager/user_import.html
57 57
      {% for report in reports %}
58 58
        <tr data-uuid="{{ report.uuid }}">
59 59
          <td class="created">{% if report.state != 'running' %}<a href="{% url "a2-manager-users-import-report" import_uuid=user_import.uuid report_uuid=report.uuid %}">{{ report.created }}</a>{% else %}{{ report.created }}{% endif %}</td>
60
	  <td class="state"><span>{{ report.state }}</span> {% if report.state == 'error' %}"{{ report.exception }}"{% endif %} {% if not report.is_running %}!failed before finishing!{% endif %}</td>
60
	  <td class="state"><span>{{ report.state }}</span> {% if report.state == 'error' %}"{{ report.exception }}"{% endif %} {% if report.state == 'running' and not report.is_running %}!failed before finishing!{% endif %}</td>
61 61
          <td class="applied">{% if not report.simulate %}<span class="icon-check"></span>{% endif %}</td>
62 62
          <td class="delete-action">{% if report.simulate %}<form method="post" id="delete-form-{{ report.uuid }}">{% csrf_token %}<button name="delete" value="{{ report.uuid }}">{% trans "Delete" %}</button></form>{% endif %}</td>
63 63
        </tr>
64
-