From 0b4af7e40fd28455484e4620781bb8239e89a02d Mon Sep 17 00:00:00 2001 From: Yingtong Li Date: Tue, 5 Mar 2019 20:17:06 +1100 Subject: [PATCH] Fix email display problems --- .../jinja2/sspromotions/email/bulletin.html | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/sspromotions/jinja2/sspromotions/email/bulletin.html b/sspromotions/jinja2/sspromotions/email/bulletin.html index 81484e0..89e7d6f 100644 --- a/sspromotions/jinja2/sspromotions/email/bulletin.html +++ b/sspromotions/jinja2/sspromotions/email/bulletin.html @@ -74,18 +74,13 @@ {{ gap }} {% for item in group.bulletin_items %} - {% if item.image %} - - {% if item.link %}{% endif %}{{ item.title }}{% if item.link %}{% endif %} - - {% endif %}
{{ item.title }}

{{ item.content | markdown }}

{% if item.link %}

Read more ›

{% endif %} + {% if not loop.last %}
{% endif %} - {% if not loop.last %}
{% endif %} {% endfor %} {% endfor %} {% if more %} @@ -93,19 +88,15 @@

More from MUMUS:

{{ gap }} - - - {% for item in more %} - - {% endfor %} -
- {% if item.image %}{% if item.link %}{% endif %}{{ item.title }}{% if item.link %}{% endif %}
{% endif %} -
{{ item.title }}
-

{{ item.content|striptags|truncate(100) }}

- {% if item.link %}

Read more ›

{% endif %} -

Subscribe to {{ item.group.name }}

-
- + {% for item in more %} + + + {% if item.image %}{% if item.link %}{% endif %}{{ item.title }}{% if item.link %}{% endif %}
{% endif %} +

{{ item.content|striptags|truncate(200) }}

+

Read more ›

+ + + {% endfor %} {% endif %} {% endblock content %}