From 5ba3c0db279c184869b10a0e719ef976c6e1b889 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 18 Feb 2025 11:50:06 +0200 Subject: [PATCH] add comments for both --- templates/new_post.html.j2 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/templates/new_post.html.j2 b/templates/new_post.html.j2 index 554d723..a80f814 100644 --- a/templates/new_post.html.j2 +++ b/templates/new_post.html.j2 @@ -60,10 +60,11 @@ {% if data['spoiler'] != "" and data['spoiler'] != null %} {% if data['translated_spoiler'] != "" and data['translated_spoiler'] != null %} + (Translated spoiler)
- (Translated spoiler) {{ data['translated_spoiler'] }}
+ (Original spoiler) {% endif %}
@@ -74,10 +75,11 @@
{% if data['translated_content'] != '' and data['translated_content'] != null %} + (Translated content)
- (Translated content) {{ data['translated_content'] }}
+ (Original content) {% else %} {% endif %} @@ -134,9 +136,11 @@
{% if reply['translated_spoiler'] != '' and reply['translated_spoiler'] != null %} + (Translated spoiler)
{{ reply['translated_spoiler'] }}
+ (Original spoiler) {% endif %}
{{ reply['spoiler'] }} @@ -146,9 +150,11 @@
{% if reply['translated_content'] != '' and reply['translated_content'] != null %} + (Translated content)
{{ reply['translated_content'] }}
+ (Original content) {% else %} {% endif %} @@ -208,9 +214,11 @@ {% if data['reblog']['translated_spoiler'] != '' and data['reblog']['translated_spoiler'] != null %} + (Translated spoiler)
{{ data['reblog']['translated_spoiler'] }}
+ (Original spoiler) {% endif %}
{{ data['reblog']['spoiler'] }} @@ -219,9 +227,11 @@
{% if data['reblog']['translated_content'] != '' and data['reblog']['translated_content'] != null %} + (Translated content)
{{ data['reblog']['translated_content'] }}
+ (Original content) {% endif %}
{{ data['reblog']['content'] }}