From 9e1a82655e832d0e65e1d8b2fba01eda39afa7b5 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Tue, 22 May 2018 14:53:14 -0400 Subject: [PATCH] Put spoilers in details/summary element. This gives us expandable CWs without JS. On Lynx, nothing actually changes. --- brutaldon/templates/main/toot_partial.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index 784836e..427e7a9 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -33,13 +33,17 @@ {% endif %}

{% if toot.spoiler_text %} -

- {{ toot.spoiler_text }} -

- {% endif %} +
+ {{ toot.spoiler_text }} +
+ {{ toot.content | relink_toot | strip_html | safe }} +
+
+ {% else %}
{{ toot.content | relink_toot | strip_html | safe }}
+ {% endif %} {% if toot.media_attachments %}