From 32a561cb83ea49a06cd03a83b1271e92684d0167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Br=C3=BCck?= Date: Thu, 21 Nov 2024 21:18:50 +0100 Subject: [PATCH] Some little improvement to make planned reminder messages more visible, and hide the long body text in the message history --- .../workshop/productionday_reminder.html | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/bakeup/templates/workshop/productionday_reminder.html b/bakeup/templates/workshop/productionday_reminder.html index 3e5a546..12b3e50 100644 --- a/bakeup/templates/workshop/productionday_reminder.html +++ b/bakeup/templates/workshop/productionday_reminder.html @@ -12,6 +12,16 @@ {% endblock %} {% block page_content %} +{% if messages_sending %} +
+
+ {% for message in messages_sending %} +

{% if message.is_sending %}SENDING{% elif message.is_planned_sending %}PLANNED SENDING{% endif %} {{ message.get_orders.count }} emails to users: {{ message }}

+ {% endfor %} +
+
+
+{% endif %} {{ form.errors }}
@@ -59,20 +69,7 @@
-{% if messages_sending %} -
-
-

Message pipeline

-

-
-
-
- {% for message in messages_sending %} -

{% if message.is_sending %}SENDING{% elif message.is_planned_sending %}PLANNED SENDING{% endif %} {{ message.get_orders.count }} emails to users: {{ message }}

- {% endfor %} -
-
-{% endif %} +
{% if messages_sent %}
@@ -88,7 +85,8 @@

Message History

{{ message.sent_date }}

{% if message.error_log %} {% endif %}{{ message }}

-

{{ message.body|safe }}

+ +