From e31783ef6e7edabb79ce91e2dc376779eeade48b Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 21 Aug 2021 11:06:27 -0700 Subject: [PATCH] Cleans up html on import status page --- bookwyrm/templates/email/preview.html | 2 +- bookwyrm/templates/import_status.html | 45 +++++++++++++-------------- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/bookwyrm/templates/email/preview.html b/bookwyrm/templates/email/preview.html index 66d856c08..ab4323054 100644 --- a/bookwyrm/templates/email/preview.html +++ b/bookwyrm/templates/email/preview.html @@ -1,4 +1,4 @@ - +
Subject: {% include subject_path %} diff --git a/bookwyrm/templates/import_status.html b/bookwyrm/templates/import_status.html index 19dcb4314..db7330bb2 100644 --- a/bookwyrm/templates/import_status.html +++ b/bookwyrm/templates/import_status.html @@ -20,10 +20,10 @@
{% trans "Import completed:" %}
{{ task.date_done | naturaltime }}
+ {% elif task.failed %} +
{% trans "TASK FAILED" %}
+ {% endif %} - {% elif task.failed %} -
{% trans "TASK FAILED" %}
- {% endif %}
@@ -84,26 +84,26 @@ - -
- - {% else %} - - {% endif %} + +
+ + {% else %} + + {% endif %}
{% endif %} @@ -153,7 +153,6 @@ {% endfor %} - {% endspaceless %}{% endblock %} {% block scripts %}