diff options
author | luxagraf <sng@luxagraf.net> | 2018-03-13 14:22:25 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-03-13 14:22:25 -0500 |
commit | c97baf9c40c40647bd15856f1028e4b52f123212 (patch) | |
tree | b746ebdd54c3e73e1682fcd56b6c01b124f7128c /design/templates/details | |
parent | ed3f6a6105958ef130aa5cb96de04a6e2396fbc9 (diff) |
added books to posts
Diffstat (limited to 'design/templates/details')
-rw-r--r-- | design/templates/details/entry.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/design/templates/details/entry.html b/design/templates/details/entry.html index e002531..dd24b61 100644 --- a/design/templates/details/entry.html +++ b/design/templates/details/entry.html @@ -72,6 +72,13 @@ class="{%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%if t == <li><a href="{% url 'sketches:detail' year=obj.pub_date.year month=obj.pub_date|date:"m" slug=obj.slug %}">{{obj}}</a></li> {% endfor %}</ul> </aside>{% endif %} + {%if object.books.all %} + <aside id="field_notes"> + <h3>Recommended Reading</h3> + <ul>{% for obj in object.books.all %} + <li><a href="{% url 'books:detail' slug=obj.slug %}"><img src="{{obj.get_image_url}}" /></a></li> + {% endfor %}</ul> + </aside>{% endif %} </div> </article> {% with object.get_next_published as next %} |