diff --git a/news/templates/news/index.html b/news/templates/news/index.html index 1cfa0f9..6e0b12c 100644 --- a/news/templates/news/index.html +++ b/news/templates/news/index.html @@ -105,7 +105,9 @@ {% elif post.style == 4 %} - {{ post.body |safe }} + {% autoescape off %} + {{ post.body }} + {% endautoescape %}
diff --git a/news/templates/news/post.html b/news/templates/news/post.html index 700ee7a..ac18a40 100644 --- a/news/templates/news/post.html +++ b/news/templates/news/post.html @@ -10,15 +10,25 @@
- {% if post.style == 1 %} -
- {% endif %} - {% if post.style != 2 %} -

{{ post.title }}

- {% endif %} - {% if post.style == 1 %} -
- {% endif %} +{% if post.style == 4 %} +{% autoescape off %} +{{ post.body }} +{% endautoescape %} +{% else %} + +{% if post.style == 1 %} +
+{% endif %} +{% if post.style != 2 %} +

{{ post.title }}

+{% endif %} +{% if post.style == 1 %} +
+{% endif %} + +{% endif %} + +
{{ post.date }} - {{ post.author.username }} @@ -27,7 +37,7 @@ {% if post.style == 3 %} - {% elif post.style != 1 %} + {% elif post.style != 1 and post.style != 4 %} {% endif %}