mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Put spoilers in details/summary element.
This gives us expandable CWs without JS. On Lynx, nothing actually changes.
This commit is contained in:
@@ -33,13 +33,17 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if toot.spoiler_text %}
|
{% if toot.spoiler_text %}
|
||||||
<p>
|
<details>
|
||||||
<strong>{{ toot.spoiler_text }} </strong>
|
<summary><strong>{{ toot.spoiler_text }} </strong></summary>
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<div class="toot">
|
<div class="toot">
|
||||||
{{ toot.content | relink_toot | strip_html | safe }}
|
{{ toot.content | relink_toot | strip_html | safe }}
|
||||||
</div>
|
</div>
|
||||||
|
</details>
|
||||||
|
{% else %}
|
||||||
|
<div class="toot">
|
||||||
|
{{ toot.content | relink_toot | strip_html | safe }}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if toot.media_attachments %}
|
{% if toot.media_attachments %}
|
||||||
<br>
|
<br>
|
||||||
|
Reference in New Issue
Block a user