Browse Source

debugging why the html template does not work anymore

master
manetta 3 years ago
parent
commit
c60e7885e5
  1. 18
      LogBot/template.html

18
LogBot/template.html

@ -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>

Loading…
Cancel
Save