2019-04-04 12:48:53 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block content %}
|
2019-12-24 22:46:41 +01:00
|
|
|
<div class="descriptionpage content-block">
|
2019-05-26 20:34:46 +02:00
|
|
|
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-12-24 22:46:41 +01:00
|
|
|
<!-- <div class="allcontent">
|
|
|
|
-->
|
|
|
|
<div class="item column column-left">
|
2019-05-13 01:45:35 +02:00
|
|
|
{% set count=[0] %}
|
|
|
|
{% for item in datafromjson %}
|
|
|
|
{% if item.lower().endswith(('.png', '.jpg', '.jpeg')) %}
|
|
|
|
<img class="img-responsive" src=" ../{{ item }}">
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% elif item.lower().endswith(('.mp4')) %}
|
|
|
|
<video width="320" height="240" controls><source src="../{{ item }}" type="video/mp4">Your browser does not support the video tag.</video>
|
2019-04-16 16:58:52 +02:00
|
|
|
|
2019-05-13 01:45:35 +02:00
|
|
|
{% elif item.lower().endswith(('.mp3')) %}
|
|
|
|
<audio controls><source src="../{{ item }}" type="audio/mpeg">Your browser does not support the audio tag.</audio>
|
2019-04-16 16:58:52 +02:00
|
|
|
|
2019-05-26 20:34:46 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-12-24 22:46:41 +01:00
|
|
|
<div class="text column column-right">
|
2019-05-27 17:32:05 +02:00
|
|
|
<h2>{{ itemid }}. {{index_dict[itemid]}}</h2>
|
2019-05-26 20:34:46 +02:00
|
|
|
{% set count=[0] %}
|
|
|
|
{% for item in datafromjson %}
|
|
|
|
{% if item.lower().endswith(('.html')) %}
|
2019-12-15 00:50:38 +01:00
|
|
|
<span class="h3-titles"> {{ namefile[count[0]][12:-5] }}</span><br><br>
|
2019-05-13 01:45:35 +02:00
|
|
|
{{ textfiles[count[0]] }}
|
|
|
|
{% if count.append(count.pop() + 1) %}{% endif %}
|
|
|
|
<br/><br/><br/>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2019-04-15 16:22:07 +02:00
|
|
|
|
2019-12-24 22:46:41 +01:00
|
|
|
<!-- </div> -->
|
2019-05-26 20:34:46 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% set int_itemid = itemid|int %}
|
|
|
|
|
|
|
|
{% if itemid != "31" %}
|
|
|
|
{% set countplus = int_itemid + 1 %}
|
|
|
|
|
2019-05-27 20:17:45 +02:00
|
|
|
{% if int_itemid in range(1,9) %}
|
2019-05-26 20:34:46 +02:00
|
|
|
{% set addressplus = "/description?id=" + "0" + countplus|string %}
|
|
|
|
{% else %}
|
|
|
|
{% set addressplus = "/description?id=" + countplus|string %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
{% set addressplus = "/description?id=" + itemid %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if itemid != "01" %}
|
|
|
|
{% set countminus = int_itemid - 1 %}
|
|
|
|
|
2019-05-29 11:54:46 +02:00
|
|
|
{% if int_itemid in range(1,11) %}
|
2019-05-26 20:34:46 +02:00
|
|
|
{% set addressminus = "/description?id=" + "0" + countminus|string %}
|
|
|
|
{% else %}
|
|
|
|
{% set addressminus = "/description?id=" + countminus|string %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
{% set addressminus = "/description?id=" + itemid %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-05-27 00:38:05 +02:00
|
|
|
<nav class="nav_bottom">
|
|
|
|
<div id="bottom_descrip_left">
|
2019-05-27 17:32:05 +02:00
|
|
|
<li class="index"><a href="/index">index</a></li>
|
|
|
|
<li class="about"><a href="/about">about</a></li>
|
2019-05-27 00:38:05 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="bottom_descrip_right">
|
|
|
|
<li class="next_item"><a href={{addressplus}}>next item</a></li>
|
|
|
|
<li class="prev_item"><a href={{addressminus}}>previous item</a></li>
|
|
|
|
<li class="no_here">{{itemid}}/31</li>
|
|
|
|
</div>
|
2019-05-26 20:34:46 +02:00
|
|
|
</nav>
|
2019-05-13 01:45:35 +02:00
|
|
|
{% endblock %}
|