aboutsummaryrefslogtreecommitdiffstats
path: root/templates/diary.html.j2
blob: 15cbe71c3ece49070b35b38e0335aa17e3267ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{% extends "template.html.j2" %}
{% block content %}
    <dl>
        {% for dt, entries in diary.items() %}
            <dt><a href="{{ entries[0]['link'] }}">{{ dt }}</a></dt>
            <dd>
                <ol id="diaryentry">
                    {% for entry in entries %}
                        {% if entry["images"] != [] %}
                            <ul>
                                {% for img in entry["images"] %}
                                    <li><a href="{{ img }}" target='_blank'><img src="{{ img }}"></a></li>
                                {% endfor %}
                            </ul>
                        {% endif %}
                        <li>
                            <p>{{ entry["text"] }}</p>
                        </li>
                    {% endfor %}
                </ol>
            </dd>
        {% endfor %}
    </dl>
{% endblock %}