]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/display.html
Rename code from 'quotations' to 'quotes'
[djsite.git] / quotes / templates / quotes / display.html
diff --git a/quotes/templates/quotes/display.html b/quotes/templates/quotes/display.html
new file mode 100644 (file)
index 0000000..108dc92
--- /dev/null
@@ -0,0 +1,20 @@
+<div class="quote">
+  <p class="text">
+    {{ quote.text }}
+  </p>
+
+  <p class="author">
+    — <span class="name"><a href="{% url 'quotes:author' quote.author.id %}">
+       {{ quote.author.name }}
+    </a></span>
+  </p>
+
+  {% if quote.tags.all %}
+    <p class="tags">
+      Tags: 
+      {% for tag in quote.tags.all %}
+        <a href="{% url 'quotes:tags' tag.id %}">{{ tag.tag }}</a>
+      {% endfor %}
+    </p>
+  {% endif %}
+</div>