add comments for both

This commit is contained in:
Antonio J. Delgado 2025-02-18 11:50:06 +02:00
parent a63aa1fd9c
commit 5ba3c0db27

View file

@ -60,10 +60,11 @@
{% if data['spoiler'] != "" and data['spoiler'] != null %} {% if data['spoiler'] != "" and data['spoiler'] != null %}
{% if data['translated_spoiler'] != "" and data['translated_spoiler'] != null %} {% if data['translated_spoiler'] != "" and data['translated_spoiler'] != null %}
<!-- translated spoiler --> <!-- translated spoiler -->
<DIV CLASS='item-spoiler'>
(Translated spoiler) (Translated spoiler)
<DIV CLASS='item-spoiler'>
{{ data['translated_spoiler'] }} {{ data['translated_spoiler'] }}
</DIV> </DIV>
(Original spoiler)
{% endif %} {% endif %}
<!-- spoiler --> <!-- spoiler -->
<DIV CLASS='item-spoiler'> <DIV CLASS='item-spoiler'>
@ -74,10 +75,11 @@
<DIV CLASS='item-content' STYLE="margin:0.5%;background-color:#111;padding:0.5%;"> <DIV CLASS='item-content' STYLE="margin:0.5%;background-color:#111;padding:0.5%;">
{% if data['translated_content'] != '' and data['translated_content'] != null %} {% if data['translated_content'] != '' and data['translated_content'] != null %}
<!-- translated_content --> <!-- translated_content -->
<DIV>
(Translated content) (Translated content)
<DIV>
{{ data['translated_content'] }} {{ data['translated_content'] }}
</DIV> </DIV>
(Original content)
{% else %} {% else %}
<!-- no translated_content present --> <!-- no translated_content present -->
{% endif %} {% endif %}
@ -134,9 +136,11 @@
<DIV CLASS='reply-spoiler'> <DIV CLASS='reply-spoiler'>
{% if reply['translated_spoiler'] != '' and reply['translated_spoiler'] != null %} {% if reply['translated_spoiler'] != '' and reply['translated_spoiler'] != null %}
<!-- translated_reply_spoiler ---> <!-- translated_reply_spoiler --->
(Translated spoiler)
<DIV> <DIV>
{{ reply['translated_spoiler'] }} {{ reply['translated_spoiler'] }}
</DIV> </DIV>
(Original spoiler)
{% endif %} {% endif %}
<DIV> <DIV>
{{ reply['spoiler'] }} {{ reply['spoiler'] }}
@ -146,9 +150,11 @@
<DIV CLASS='reply-content'> <DIV CLASS='reply-content'>
{% if reply['translated_content'] != '' and reply['translated_content'] != null %} {% if reply['translated_content'] != '' and reply['translated_content'] != null %}
<!-- translated_reply_content ---> <!-- translated_reply_content --->
(Translated content)
<DIV> <DIV>
{{ reply['translated_content'] }} {{ reply['translated_content'] }}
</DIV> </DIV>
(Original content)
{% else %} {% else %}
<!-- no translated_reply_content --> <!-- no translated_reply_content -->
{% endif %} {% endif %}
@ -208,9 +214,11 @@
<!-- reblog_spoiler --> <!-- reblog_spoiler -->
{% if data['reblog']['translated_spoiler'] != '' and data['reblog']['translated_spoiler'] != null %} {% if data['reblog']['translated_spoiler'] != '' and data['reblog']['translated_spoiler'] != null %}
<!-- translated_reblog_spoiler ---> <!-- translated_reblog_spoiler --->
(Translated spoiler)
<DIV CLASS='reblog-spoiler'> <DIV CLASS='reblog-spoiler'>
{{ data['reblog']['translated_spoiler'] }} {{ data['reblog']['translated_spoiler'] }}
</DIV> </DIV>
(Original spoiler)
{% endif %} {% endif %}
<DIV CLASS='reblog-spoiler'> <DIV CLASS='reblog-spoiler'>
{{ data['reblog']['spoiler'] }} {{ data['reblog']['spoiler'] }}
@ -219,9 +227,11 @@
<DIV CLASS='reblog-content'> <DIV CLASS='reblog-content'>
{% if data['reblog']['translated_content'] != '' and data['reblog']['translated_content'] != null %} {% if data['reblog']['translated_content'] != '' and data['reblog']['translated_content'] != null %}
<!-- translated_reblog_content ---> <!-- translated_reblog_content --->
(Translated content)
<DIV> <DIV>
{{ data['reblog']['translated_content'] }} {{ data['reblog']['translated_content'] }}
</DIV> </DIV>
(Original content)
{% endif %} {% endif %}
<DIV> <DIV>
{{ data['reblog']['content'] }} {{ data['reblog']['content'] }}