Be explicit that these scripts require Python 3
[books.alexwlchan.net] / templates / list_reviews.html
1 {% extends "base.html" %}
2
3 {% block content %}
4   <p class="nav">
5     <a class="selected" href="/reviews">read</a> /
6     <a href="/reading">reading</a> /
7     <a href="/to-read">to read</a>
8   </p>
9
10   <h2>books i&rsquo;ve read</h2>
11
12   <p id="jump_to">jump to:
13     {% for year, _ in all_reviews %}
14     <a href="#books_by_year_{{ year }}">
15       {% if year %}{{ year }}{% else %}other times{% endif -%}
16     </a>
17     {% if not loop.last %} / {% endif %}
18     {% endfor %}
19   </p>
20
21   {% for year, reviews in all_reviews %}
22   <div class="divider"><img src="/static/book.svg"></div>
23
24   <div class="books_by_year" id="books_by_year_{{ year }}">
25     <h3>the {{ reviews|length }} book{% if reviews|length != 1 %}s{% endif %}
26       {% if year == this_year %}
27         i&rsquo;ve read so far
28       {% else %}
29         i read
30       {% endif %}
31
32       {% if year %}
33         in {{ year }}
34       {% else %}
35         at another time
36       {% endif %}
37     </h3>
38
39     {% for review_entry in reviews %}
40       {% include "_review_entry.html" %}
41     {% endfor %}
42   </div>
43
44   {% endfor %}
45 {% endblock %}