]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/display.html
Use jQuery for some effects
[djsite.git] / quotes / templates / quotes / display.html
index 1369e2ce96f2ac30abb2d9388aa564f587fe66cc..1b774a1463dfd71135f5ed6039fb7acc71742212 100644 (file)
@@ -1,26 +1,42 @@
 <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 %}" class="tag_link">
-         {{ tag.tag }}
-       </a>
-      {% endfor %}
-    </p>
-  {% endif %}
+  <div class="text">
+    {{ quote.text|safe }}
+  </div>
 
+  <div class="details" id="details_{{ quote.id }}">
+    <p><a href="#" class="showhide_button"></a></p>
+    <div class="hidden_details">
+      <p class="author">
+       — <span class="name">
+         <a href="{{ quote.work.author.get_absolute_url }}"
+            class="author_name">{{ quote.work.author.name }}</a>,
+         <a href="{% quote.work.get_absolute_url }}"
+            class="work_name">{{ quote.work.name }}</a>
+       </span>
+      </p>
+      {% if quote.notes %}
+        <div class="quote_notes">
+         {{ quote.notes|safe }}
+        </div>
+      {% endif %}
+      {% 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.work.author %}
+      {% endif %}
+      {% if quote.tags.all %}
+      <p class="tags">
+       Tags:
+       {% for tag in quote.tags.all %}
+         <a href="{{ tag.get_absolute_url }}" class="tag_link"
+           >{{ tag.tag }}</a>{% if not forloop.last %}, {% endif %}
+        {% endfor %}
+      </p>
+      {% endif %}
+    </div> <!-- /hidden_details -->
+  </div>   <!-- /details -->
   <p class="permalink">
-    <a href="{% url 'quotes:onequote' quote.id %}">Permalink</a>
+    <a href="{{ quote.get_absolute_url }}">Permalink</a>
   </p>
 </div>