-
Notifications
You must be signed in to change notification settings - Fork 1
/
root.html
44 lines (39 loc) · 1006 Bytes
/
root.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "base.html" %}
{% block body %}
<div class="container">
<div class="container">
<h1>Image Directory Viewer</h1>
</div>
<hr>
<div class="container">
<div>
<span class="key">Directory:</span>
<span class="value">{{ img_dir }}</span>
</div>
<div>
<span class="key"># images:</span>
<span class="value">{{ num_imgs }}</span>
</div>
</div>
<hr>
<div class="container">
{% for img_file in img_files %}
<div class="img-block">
<span>{{ img_file }}</span>
<div>
{% if dynamic %}
<img src="/dynamic-img/{{ img_file }}">
{% else %}
<img src="/static-img/{{ img_file }}">
{% endif %}
</div>
</div>
{% endfor %}
</div>
<div class='footer-space'></div>
{% endblock %}
{% block code %}
<script>
// No JS for now
</script>
{% endblock %}