]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/templates/quotes/display.html
Add a massimport page
[djsite.git] / quotes / templates / quotes / display.html
index a9ff5cfbf3e5c6bdf78fc57f110654a6c8d24a17..2db4c572c2a38dccf5c48d079a182d24d6873472 100644 (file)
@@ -3,15 +3,9 @@
     {{ quote.text|safe }}
   </div>
 
-  <div class="details">
-    <p id="details_{{ quote.id}}_button">
-      <a href="" class="show_details"
-         onclick="showDetails('details_{{ quote.id }}'); return false;">
-       Show details</a></p>
-    <div class="hidden_details" id="details_{{ quote.id }}">
-      <p><a href="" class="hide_details"
-           onclick="hideDetails('details_{{ quote.id }}'); return false;">
-         Hide details</a></p>
+  <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 }}"
       {% if not skip_author_notes %}
         {% include "quotes/author_notes.html" with author=quote.work.author %}
       {% endif %}
-      {% if quote.tags.all %}
+      {% if quote.tags.all.count %}
       <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 %}
+           >{{ tag.tag }}</a>{% if not forloop.last %}, {% endif %}
         {% endfor %}
       </p>
       {% endif %}
-
     </div> <!-- /hidden_details -->
   </div>   <!-- /details -->
   <p class="permalink">