]> gitweb.fperrin.net Git - djsite.git/blob - quotes/templates/quotes/display.html
Reduce the amount of whitespace
[djsite.git] / quotes / templates / quotes / display.html
1 <div class="quote">
2   <p class="text">
3     {{ quote.text }}
4   </p>
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="{% url 'quotes:author' quote.work.author.id %}"
18              class="author_name">{{ quote.work.author.name }}</a>,
19           <a href="{% url 'quotes:work' quote.work.id %}"
20              class="work_name">{{ quote.work.name }}</a>
21         </span>
22       </p>
23       <div class="quote_notes">
24         <p>{{ quote.notes|safe }}</p>
25       </div>
26       {% if not skip_work_notes %}
27         {% include "quotes/work_notes.html" with work=quote.work %}
28       {% endif %}
29       {% if not skip_author_notes %}
30         {% include "quotes/author_notes.html" with author=quote.work.author %}
31       {% endif %}
32       {% if quote.tags.all %}
33       <p class="tags">
34         Tags:
35         {% for tag in quote.tags.all %}
36           <a href="{% url 'quotes:tags' tag.id %}" class="tag_link"
37             >{{ tag.tag }}</a
38             >{% if not forloop.last %}, {% endif %}
39         {% endfor %}
40       </p>
41       {% endif %}
42
43     </div> <!-- /hidden_details -->
44   </div>   <!-- /details -->
45   <p class="permalink">
46     <a href="{% url 'quotes:onequote' quote.id %}">Permalink</a>
47   </p>
48 </div>