Render titles with smartypants
[books.alexwlchan.net] / templates / list_plans.html
1 {% extends "base.html" %}
2
3 {% block content %}
4   <p class="nav">
5     <a href="/reviews">read</a> /
6     <a href="/reading">reading</a> /
7     <a class="selected" href="/to-read">to read</a>
8   </p>
9
10   <h2>books i want to read</h2>
11
12   {% for plan_entry in all_plans %}
13   <div class="reading">
14     <div class="reading_inner">
15       <div class="book_thumbnail">
16         {% set book = plan_entry.book %}
17         {% include "_book_cover.html" %}
18       </div>
19
20       <div class="book_metadata">
21         <p class="title">{{ plan_entry.book.title | smartypants | safe }}</p>
22         <p>
23           <small>
24             by {{ plan_entry.book.author }}
25             {%- if plan_entry.book.publication_year %}
26               ({{ plan_entry.book.publication_year}})
27             {%- endif -%}
28           </small>
29         </p>
30       </div>
31     </div>
32     {% if plan_entry.plan.text %}
33     <div class="note">
34       {{ plan_entry.plan.text | render_markdown | safe }}
35     </div>
36     {% endif %}
37   </div>
38   {% endfor %}
39 {% endblock %}