]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/work.html
Add a 'work' concept
[djsite.git] / quotes / templates / quotes / work.html
diff --git a/quotes/templates/quotes/work.html b/quotes/templates/quotes/work.html
new file mode 100644 (file)
index 0000000..fca2548
--- /dev/null
@@ -0,0 +1,13 @@
+{% extends 'quotes/base.html' %}
+{% block title %}Quotes for {{ work.name }} by {{ work.author.name }}{% endblock %}
+{% block body %}
+
+<h1>{{ work.name }} by {{ work.author.name }}</h1>
+{% include "quotes/work_notes.html" with work=work %}
+{% include "quotes/author_notes.html" with author=work.author %}
+
+<p>All the quotes for {{ work.name }}:<p>
+{% for quote in work.quote_set.all %}
+  {% include "quotes/display.html" with quote=quote skip_author_notes=True skip_work_notes=True %}
+{% endfor %}
+{% endblock %}