Add a way to track books that I didn't finish
[books.alexwlchan.net] / templates / review.html
1 {% extends "base.html" %}
2
3 {% block content %}
4   {% if review_entry.book.cover_image %}
5     <div class="book-cover">
6       {% set book = review_entry.book %}
7       {% include "_book_cover.html" %}
8     </div>
9   {% endif %}
10
11   <h1>My review of <span class="book-title">{{ review_entry.book.title }}</span></h1>
12
13   <table class="book_metadata">
14     <tr>
15       <td>author:</td>
16       <th>{{ review_entry.book.author }}
17         {%- if review_entry.book.publication_year %}
18           ({{ review_entry.book.publication_year}})
19         {%- endif -%}
20       </th>
21     </tr>
22     <tr>
23       <td>date read:</td>
24       <th>{{ review_entry.review.date_read | render_date }}</th>
25     </tr>
26     <tr>
27       <td>rating:</td>
28       <th>
29         {% for _ in range(review_entry.review.rating) %}
30         ★
31         {% endfor %}
32         {% for _ in range(5 - review_entry.review.rating) %}
33         ☆
34         {% endfor %}
35         {% if review_entry.review.did_not_finish %}
36         (did not finish)
37         {% endif %}
38       </th>
39     </tr>
40   </table>
41
42   {{ review_entry.review.text | render_markdown | safe }}
43
44   <p>(see <a href="/reviews">all reviews</a>)</p>
45 {% endblock %}