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