From ffdb262f944977fed2ab5881f68ae5c0836b352f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 17 Feb 2025 16:47:24 +0200 Subject: [PATCH] add divs for texts --- templates/new_post.html.j2 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/templates/new_post.html.j2 b/templates/new_post.html.j2 index b9a343b..bcdbb17 100644 --- a/templates/new_post.html.j2 +++ b/templates/new_post.html.j2 @@ -73,11 +73,15 @@
{% if data['translated_content'] != '' and data['translated_content'] != null %} +
{{ data['translated_content'] }} +
{% else %} {% endif %} +
{{ data['content'] }} +
{% if data['media_attachments'] %} {% for media in data['media_attachments'] %} @@ -128,19 +132,19 @@
{% 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'] %} @@ -205,9 +209,9 @@
{% 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'] %}