add divs for texts

This commit is contained in:
Antonio J. Delgado 2025-02-17 16:47:24 +02:00
parent a266db1a7e
commit ffdb262f94

View file

@ -73,11 +73,15 @@
<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 -->
<DIV>
{{ data['translated_content'] }}
</DIV>
{% else %}
<!-- no translated_content present -->
{% endif %}
<DIV>
{{ data['content'] }}
</DIV>
<!-- media -->
{% if data['media_attachments'] %}
{% for media in data['media_attachments'] %}
@ -128,19 +132,19 @@
<DIV CLASS='reply-spoiler'>
{% if reply['translated_spoiler'] != '' and reply['translated_spoiler'] != null %}
<!-- translated_reply_spoiler --->
{{ reply['translated_spoiler'] }}
<DIV>{{ reply['translated_spoiler'] }}</DIV>
{% endif %}
{{ reply['spoiler'] }}
<DIV>{{ reply['spoiler'] }}</DIV>
</DIV>
<!-- reply_content -->
<DIV CLASS='reply-content'>
{% if reply['translated_content'] != '' and reply['translated_content'] != null %}
<!-- translated_reply_content --->
{{ reply['translated_content'] }}
<DIV>{{ reply['translated_content'] }}</DIV>
{% else %}
<!-- no translated_reply_content -->
{% endif %}
{{ reply['content'] }}
<DIV>{{ reply['content'] }}</DIV>
<!-- media -->
{% if reply['media_attachments'] %}
{% for media in reply['media_attachments'] %}
@ -205,9 +209,9 @@
<DIV CLASS='reblog-content'>
{% if data['reblog']['translated_content'] != '' and data['reblog']['translated_content'] != null %}
<!-- translated_reblog_content --->
{{ data['reblog']['translated_content'] }}
<DIV>{{ data['reblog']['translated_content'] }}</DIV>
{% endif %}
{{ data['reblog']['content'] }}
<DIV>{{ data['reblog']['content'] }}</DIV>
<!-- media -->
{% if data['reblog']['media_attachments'] %}
{% for media in data['reblog']['media_attachments'] %}