]> 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 a9ff5cfbf3e5c6bdf78fc57f110654a6c8d24a17..1b774a1463dfd71135f5ed6039fb7acc71742212 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 }}"
        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">