diff --git a/LogBot/template.html b/LogBot/template.html index 0c3171e..7113444 100644 --- a/LogBot/template.html +++ b/LogBot/template.html @@ -14,8 +14,22 @@

{{ num }}

{{ db[num]['date'] }}

- {% if 'media' in db[num] %}

{{ db[num]['media']['post'] }}

{% endif %} -

{{ db[num]['post'] }}

+ {{ db[num] }} + {% if 'media' in db[num] %} +

+ {% if 'image' in db[num]['media']['type'] %} + + {% elif 'application' in db[num]['media']['type'] %} + + {% elif 'audio' in db[num]['media']['type'] %} + + {% elif 'video' in db[num]['media']['type'] %} + + {% endif %} +

+ {% else %} +

{{ db[num]['post'] }}

+ {% endif %}
{% endfor %}