From 66de568c699e58b2f86175fc96a0a6459ae1ea16 Mon Sep 17 00:00:00 2001 From: Yingtong Li Date: Sun, 17 Mar 2019 23:24:18 +1100 Subject: [PATCH] Fix display of images/more in bulletin --- sspromotions/jinja2/sspromotions/email/bulletin.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sspromotions/jinja2/sspromotions/email/bulletin.html b/sspromotions/jinja2/sspromotions/email/bulletin.html index 89e7d6f..11f06bb 100644 --- a/sspromotions/jinja2/sspromotions/email/bulletin.html +++ b/sspromotions/jinja2/sspromotions/email/bulletin.html @@ -76,6 +76,7 @@
{{ item.title }}
+ {% if item.image %}{{ item.title }}{% endif %}

{{ item.content | markdown }}

{% if item.link %}

Read more ›

{% endif %} {% if not loop.last %}
{% endif %} @@ -90,9 +91,10 @@ {{ gap }} {% for item in more %} - - {% if item.image %}{% if item.link %}{% endif %}{{ item.title }}{% if item.link %}{% endif %}
{% endif %} -

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

+ +
{{ item.title }}
+ {% if item.image %}{{ item.title }}{% endif %} +

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

Read more ›