From f6d5fad12f4d9526bbb7b1b3fc479a702af51ab6 Mon Sep 17 00:00:00 2001 From: Oleg Lavrovsky Date: Tue, 9 May 2017 12:21:38 +0200 Subject: [PATCH] Plain text news boxes --- publichealth/home/templates/news.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/publichealth/home/templates/news.html b/publichealth/home/templates/news.html index c6b1fa7..4caf8a8 100644 --- a/publichealth/home/templates/news.html +++ b/publichealth/home/templates/news.html @@ -3,7 +3,7 @@
- {% for entry in newsfeed %} + {% for entry in newsfeed %}
{% if entry.header_image %} @@ -13,10 +13,10 @@

{{ entry.title }}

{% if entry.excerpt %} - {{ entry.excerpt|richtext }} - {% else %} - {{ entry.body|richtext|truncatewords_html:70 }} - {% endif %} + {{ entry.excerpt|striptags }} + {% else %} + {{ entry.body|striptags|truncatewords_html:70 }} + {% endif %}

Mehr erfahren
@@ -25,7 +25,7 @@
{% empty %} No news today - {% endfor %} + {% endfor %}