debugging why the html template does not work anymore

This commit is contained in:
manetta 2022-02-18 17:00:26 +01:00
parent 535a584bb1
commit c60e7885e5

View File

@ -14,8 +14,22 @@
<div id="{{ num }}" class="post">
<p class="key">{{ num }}</p>
<p class="date">{{ db[num]['date'] }}</p>
{% if 'media' in db[num] %}<p class="media">{{ db[num]['media']['post'] }}</p>{% endif %}
<p class="message">{{ db[num]['post'] }}</p>
{{ db[num] }}
{% if 'media' in db[num] %}
<p class="post">
{% if 'image' in db[num]['media']['type'] %}
<img src="{{ db[num]['media']['path'] }}" loading="lazy">
{% elif 'application' in db[num]['media']['type'] %}
<iframe src="{{ db[num]['media']['path'] }}" loading="lazy"></iframe>
{% elif 'audio' in db[num]['media']['type'] %}
<audio src="{{ db[num]['media']['path'] }}" preload="none"></audio>
{% elif 'video' in db[num]['media']['type'] %}
<video src="{{ db[num]['media']['path'] }}" preload="none"></video>
{% endif %}
</p>
{% else %}
<p class="post">{{ db[num]['post'] }}</p>
{% endif %}
</div>
{% endfor %}
</div>