From a41e075d7bf3ea63c4e4628769a7d649ee03860a Mon Sep 17 00:00:00 2001 From: Ivan Fonseca Date: Tue, 24 Jul 2018 15:54:24 -0400 Subject: [PATCH] Apply setting to topic text, topic text preview, and message text --- tildes/tildes/templates/macros/messages.jinja2 | 6 +++++- tildes/tildes/templates/macros/topics.jinja2 | 6 +++++- tildes/tildes/templates/topic.jinja2 | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/tildes/tildes/templates/macros/messages.jinja2 b/tildes/tildes/templates/macros/messages.jinja2 index f7e8e84..5f95bfa 100644 --- a/tildes/tildes/templates/macros/messages.jinja2 +++ b/tildes/tildes/templates/macros/messages.jinja2 @@ -13,6 +13,10 @@ {{ time_ago(message.created_time) }} -
{{ message.rendered_html|safe }}
+
{{ message.rendered_html|safe }}
{% endmacro %} diff --git a/tildes/tildes/templates/macros/topics.jinja2 b/tildes/tildes/templates/macros/topics.jinja2 index daa1c06..eb9a5b8 100644 --- a/tildes/tildes/templates/macros/topics.jinja2 +++ b/tildes/tildes/templates/macros/topics.jinja2 @@ -51,7 +51,11 @@ {% if not topic.get_content_metadata('excerpt').endswith('...') %}

{{ topic.get_content_metadata('excerpt') }}

{% else %} -
+
{{ topic.get_content_metadata('excerpt') }} diff --git a/tildes/tildes/templates/topic.jinja2 b/tildes/tildes/templates/topic.jinja2 index 508f15e..78e60a8 100644 --- a/tildes/tildes/templates/topic.jinja2 +++ b/tildes/tildes/templates/topic.jinja2 @@ -40,7 +40,11 @@ {% if request.has_permission('view_content', topic) %} {% if topic.is_text_type %} -
{{ topic.rendered_html|safe }}
+
{{ topic.rendered_html|safe }}
{% elif topic.is_link_type %}