2019-04-04 12:48:53 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="description">
|
2019-04-15 16:22:07 +02:00
|
|
|
<h2 style = "text-align: center;">{{ itemid }}</h2>
|
2019-04-04 12:48:53 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
<!--passing files
|
|
|
|
<p>{{ datafromjson }}</p>-->
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% set count=[0] %}
|
|
|
|
{% for item in datafromjson %}
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% if item.lower().endswith(('.png', '.jpg', '.jpeg')) %}
|
|
|
|
<div>
|
|
|
|
<img class="img-responsive" src=" ../{{ item }}">
|
|
|
|
</div>
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% elif item.lower().endswith(('.mp4')) %}
|
|
|
|
<div>
|
|
|
|
<video width="320" height="240" controls><source src="../{{ item }}" type="video/mp4">Your browser does not support the video tag.</video>
|
|
|
|
</div>
|
2019-04-16 16:58:52 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% elif item.lower().endswith(('.mp3')) %}
|
|
|
|
<div>
|
|
|
|
<audio controls><source src="../{{ item }}" type="audio/mpeg">Your browser does not support the audio tag.</audio>
|
|
|
|
</div>
|
2019-04-16 16:58:52 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% elif item.lower().endswith(('.html')) %}
|
|
|
|
{{ textfiles[count[0]] }}
|
|
|
|
{% if count.append(count.pop() + 1) %}{% endif %}
|
|
|
|
<br/><br/><br/>
|
|
|
|
{% endif %}
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% endblock %}
|