mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-27 09:10:08 -05:00
Put spoilers in details/summary element.
This gives us expandable CWs without JS. On Lynx, nothing actually changes.
This commit is contained in:
parent
2895bae6bc
commit
9e1a82655e
@ -33,13 +33,17 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if toot.spoiler_text %}
|
||||
<p>
|
||||
<strong>{{ toot.spoiler_text }} </strong>
|
||||
</p>
|
||||
{% endif %}
|
||||
<details>
|
||||
<summary><strong>{{ toot.spoiler_text }} </strong></summary>
|
||||
<div class="toot">
|
||||
{{ toot.content | relink_toot | strip_html | safe }}
|
||||
</div>
|
||||
</details>
|
||||
{% else %}
|
||||
<div class="toot">
|
||||
{{ toot.content | relink_toot | strip_html | safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if toot.media_attachments %}
|
||||
<br>
|
||||
|
Loading…
Reference in New Issue
Block a user