forked from varia/bots
debugging why the html template does not work anymore
This commit is contained in:
parent
535a584bb1
commit
c60e7885e5
@ -14,8 +14,22 @@
|
|||||||
<div id="{{ num }}" class="post">
|
<div id="{{ num }}" class="post">
|
||||||
<p class="key">{{ num }}</p>
|
<p class="key">{{ num }}</p>
|
||||||
<p class="date">{{ db[num]['date'] }}</p>
|
<p class="date">{{ db[num]['date'] }}</p>
|
||||||
{% if 'media' in db[num] %}<p class="media">{{ db[num]['media']['post'] }}</p>{% endif %}
|
{{ db[num] }}
|
||||||
<p class="message">{{ db[num]['post'] }}</p>
|
{% 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>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user