PushingScores/templates/description.html

43 lines
1.0 KiB
HTML
Raw Normal View History

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
<!--passing files-->
2019-04-15 16:22:07 +02:00
<p>{{ datafromjson }}</p>
<div class="col-lg-3 col-md-4 col-xs-6 thumb">
{% for item in datafromjson %}
{% if item.lower().endswith(('.png', '.jpg', '.jpeg')) %}
<div>
<img class="img-responsive" src=" ../{{ item }}">
</div>
2019-04-16 16:58:52 +02:00
2019-04-15 16:22:07 +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-04-15 16:22:07 +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>
{% endif %}
{% endfor %}
{% if textfile is defined %}
2019-04-16 17:03:28 +02:00
{{ textfile }}
2019-04-15 16:22:07 +02:00
{% endif %}
2019-04-04 12:48:53 +02:00
2019-04-16 15:57:55 +02:00
2019-04-04 12:48:53 +02:00
</div>
{% endblock %}