zeroth
5 years ago
9 changed files with 14 additions and 106 deletions
Binary file not shown.
@ -1,73 +0,0 @@ |
|||
|
|||
{% extends "layout.html" %} |
|||
{% block content %} |
|||
<div class="all"> |
|||
<h1>These are all the files</h1> |
|||
{{ listingfiles }} <br> |
|||
{{ jsonfiles }} <br> |
|||
{{ listofdicts }} <br> |
|||
<div class="col-lg-3 col-md-4 col-xs-6 thumb"> |
|||
{% for filename in listingfiles %} |
|||
{% if filename.lower().endswith(('.png', '.jpg', '.jpeg')) %} |
|||
<div><img class="img-responsive" src=" ../{{ filename }}"> |
|||
{% for jsonfile in jsonfiles %} |
|||
{% if filename[0:9] == jsonfile[0:9] %} |
|||
<div class="descrip"> |
|||
{{ jsonfile }} |
|||
{% for dict in listofdicts %} |
|||
{% if jsonfile[6:9]==dict["id"] %} |
|||
<p>{% for key, value in dict.items() %} |
|||
{{key}}: {{value}}<br> |
|||
{% endfor %}</p> |
|||
{% endif %} |
|||
{% endfor %} |
|||
</div></div> |
|||
{% break %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
|
|||
{% elif filename.lower().endswith(('.mp4')) %} |
|||
<div><video width="320" height="240" controls><source src="../{{filename}}" type="video/mp4"> |
|||
Your browser does not support the video tag. |
|||
</video> |
|||
{% for jsonfile in jsonfiles %} |
|||
{% if filename[0:9] == jsonfile[0:9] %} |
|||
<div class="descrip"> |
|||
{{ jsonfile }} |
|||
{% for dict in listofdicts %} |
|||
{% if jsonfile[6:9]==dict["id"] %} |
|||
<p>{% for key, value in dict.items() %} |
|||
{{key}}: {{value}}<br> |
|||
{% endfor %}</p> |
|||
{% endif %} |
|||
{% endfor %} |
|||
</div></div> |
|||
{% break %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
|
|||
{% elif filename.lower().endswith(('.mp3')) %} |
|||
<div><audio controls><source src="../{{filename}}" type="audio/mpeg"> |
|||
Your browser does not support the audio tag. |
|||
</audio> |
|||
{% for jsonfile in jsonfiles %} |
|||
{% if filename[0:9] == jsonfile[0:9]%} |
|||
<div class="descrip"> |
|||
{{ jsonfile }} |
|||
{% for dict in listofdicts %} |
|||
{% if jsonfile[6:9]==dict["id"] %} |
|||
<p>{% for key, value in dict.items() %} |
|||
{{key}}: {{value}}<br> |
|||
{% endfor %}</p> |
|||
{% endif %} |
|||
{% endfor %} |
|||
</div></div> |
|||
{% break %} |
|||
{% endif %} |
|||
{% endfor %} |
|||
{% endif %} |
|||
|
|||
{% endfor %} |
|||
</div> |
|||
</div> |
|||
{% endblock %} |
@ -1,12 +0,0 @@ |
|||
{% extends "layout.html" %} |
|||
|
|||
{% block content %} |
|||
{% if cookie is defined %} |
|||
{{ cookie }} |
|||
{% endif %} |
|||
|
|||
{{ r }} |
|||
{{ r0w }} |
|||
{{ r0c }} |
|||
{{ r0id }} |
|||
{% endblock %} |
Loading…
Reference in new issue