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