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