From 326e86e08882c2144a6a4fd3d2ad74b7b3d22f47 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 18 Feb 2025 11:03:03 +0200 Subject: [PATCH] separate divs --- templates/new_post.html.j2 | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/templates/new_post.html.j2 b/templates/new_post.html.j2 index d3af062..40279e0 100644 --- a/templates/new_post.html.j2 +++ b/templates/new_post.html.j2 @@ -74,13 +74,13 @@ {% if data['translated_content'] != '' and data['translated_content'] != null %}
- {{ data['translated_content'] }} + {{ data['translated_content'] }}
{% else %} {% endif %}
- {{ data['content'] }} + {{ data['content'] }}
{% if data['media_attachments'] %} @@ -132,19 +132,27 @@
{% if reply['translated_spoiler'] != '' and reply['translated_spoiler'] != null %} -
{{ reply['translated_spoiler'] }}
+
+ {{ reply['translated_spoiler'] }} +
{% endif %} -
{{ reply['spoiler'] }}
+
+ {{ reply['spoiler'] }} +
{% if reply['translated_content'] != '' and reply['translated_content'] != null %} -
{{ reply['translated_content'] }}
+
+ {{ reply['translated_content'] }} +
{% else %} {% endif %} -
{{ reply['content'] }}
+
+ {{ reply['content'] }} +
{% if reply['media_attachments'] %} {% for media in reply['media_attachments'] %} @@ -209,9 +217,13 @@
{% if data['reblog']['translated_content'] != '' and data['reblog']['translated_content'] != null %} -
{{ data['reblog']['translated_content'] }}
+
+ {{ data['reblog']['translated_content'] }} +
{% endif %} -
{{ data['reblog']['content'] }}
+
+ {{ data['reblog']['content'] }} +
{% if data['reblog']['media_attachments'] %} {% for media in data['reblog']['media_attachments'] %}