]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/author.html
Fix tag errors found by the new UT
[djsite.git] / quotes / templates / quotes / author.html
index 1fa09c8731519c99ac39f18a9322940354f7de85..755428644065a441293df000d404ba88d46039c4 100644 (file)
@@ -1,15 +1,19 @@
 {% extends 'quotes/base.html' %}
 
-{% block body %}
+{% block title %}Quotes for {{ author.name }}{% endblock %}
 
+{% block body %}
 
 <h1>{{ author.name }}</h1>
 
-<p>All the quotes for {{ author.name }}:<p>
+{% include "quotes/author_notes.html" with author=author %}
 
-{% for quote in author.quote_set.all %}
-  {% include "quotes/display.html" with quote=quote %}
-{% endfor %}
+<p>All the quotes for {{ author.name }}:</p>
 
+{% for work in author.work_set.all %}
+  {% for quote in work.quote_set.all %}
+    {% include "quotes/display.html" with quote=quote skip_author_notes=True %}
+  {% endfor %}
+{% endfor %}
 
 {% endblock %}