Support formats; add a "currently reading" page
[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="/plans">to read</a>
8   </p>
9
10   <h2>books i&rsquo;ve read</h2>
11
12   {% for review_entry in all_reviews %}
13   <div class="review_preview">
14     <a href="/{{ review_entry.out_path() }}">
15       <div class="book_thumbnail">
16         {% set book = review_entry.book %}
17         {% include "_book_cover.html" %}
18       </div>
19
20       <div class="book_metadata">
21         <p class="title">{{ review_entry.book.title }}</p>
22         <p>
23           <small>
24             by {{ review_entry.book.author }}
25             {%- if review_entry.book.publication_year %}
26               ({{ review_entry.book.publication_year}})
27             {%- endif -%}
28               <br/>
29             read {{ review_entry.review.date_read | render_date }}
30               <br/>
31             {% for _ in range(review_entry.review.rating) %}
32             ★
33             {% endfor %}
34             {% for _ in range(5 - review_entry.review.rating) %}
35             ☆
36             {% endfor %}
37           </small>
38         </p>
39       </div>
40     </a>
41   </div>
42   {% endfor %}
43 {% endblock %}