]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/display.html
Add a 'work' concept
[djsite.git] / quotes / templates / quotes / display.html
index 2b1f03c31a0881fd7cba983bbb4f8447ef65f339..fcf5906dc5ec720ac4909ce7310143ac90422f93 100644 (file)
          Hide details</a></p>
       <p class="author">
        — <span class="name">
-         <a href="{% url 'quotes:author' quote.author.id %}">
-           {{ quote.author.name }}
-         </a>
+         <a href="{% url 'quotes:author' quote.work.author.id %}"
+            class="author_name">{{ quote.work.author.name }}</a>,
+         <a href="{% url 'quotes:work' quote.work.id %}"
+            class="work_name">{{ quote.work.name }}</a>
        </span>
       </p>
 
+      <div class="quote_notes">
+       <p>{{ quote.notes|safe }}</p>
+      </div>
+
+      {% if not skip_work_notes %}
+        {% include "quotes/work_notes.html" with work=quote.work %}
+      {% endif %}
       {% if not skip_author_notes %}
-        {% include "quotes/author_notes.html" with author=quote.author %}
+        {% include "quotes/author_notes.html" with author=quote.work.author %}
       {% endif %}
+      
 
       {% if quote.tags.all %}
       <p class="tags">