]> gitweb.fperrin.net Git - djsite.git/blob - quotes/templates/quotes/display.html
a9ff5cfbf3e5c6bdf78fc57f110654a6c8d24a17
[djsite.git] / quotes / templates / quotes / display.html
1 <div class="quote">
2   <div class="text">
3     {{ quote.text|safe }}
4   </div>
5
6   <div class="details">
7     <p id="details_{{ quote.id}}_button">
8       <a href="" class="show_details"
9           onclick="showDetails('details_{{ quote.id }}'); return false;">
10         Show details</a></p>
11     <div class="hidden_details" id="details_{{ quote.id }}">
12       <p><a href="" class="hide_details"
13             onclick="hideDetails('details_{{ quote.id }}'); return false;">
14           Hide details</a></p>
15       <p class="author">
16         — <span class="name">
17           <a href="{{ quote.work.author.get_absolute_url }}"
18              class="author_name">{{ quote.work.author.name }}</a>,
19           <a href="{% quote.work.get_absolute_url }}"
20              class="work_name">{{ quote.work.name }}</a>
21         </span>
22       </p>
23       {% if quote.notes %}
24         <div class="quote_notes">
25           {{ quote.notes|safe }}
26         </div>
27       {% endif %}
28       {% if not skip_work_notes %}
29         {% include "quotes/work_notes.html" with work=quote.work %}
30       {% endif %}
31       {% if not skip_author_notes %}
32         {% include "quotes/author_notes.html" with author=quote.work.author %}
33       {% endif %}
34       {% if quote.tags.all %}
35       <p class="tags">
36         Tags:
37         {% for tag in quote.tags.all %}
38           <a href="{{ tag.get_absolute_url }}" class="tag_link"
39             >{{ tag.tag }}</a
40             >{% if not forloop.last %}, {% endif %}
41         {% endfor %}
42       </p>
43       {% endif %}
44
45     </div> <!-- /hidden_details -->
46   </div>   <!-- /details -->
47   <p class="permalink">
48     <a href="{{ quote.get_absolute_url }}">Permalink</a>
49   </p>
50 </div>