]> gitweb.fperrin.net Git - djsite.git/blob - quotes/templates/quotes/display.html
Add a 'work' concept
[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
24       <div class="quote_notes">
25         <p>{{ quote.notes|safe }}</p>
26       </div>
27
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       
35
36       {% if quote.tags.all %}
37       <p class="tags">
38         Tags:
39         {% for tag in quote.tags.all %}
40           <a href="{% url 'quotes:tags' tag.id %}" class="tag_link"
41             >{{ tag.tag }}</a
42             >{% if not forloop.last %}, {% endif %}
43         {% endfor %}
44       </p>
45       {% endif %}
46
47     </div> <!-- /hidden_details -->
48   </div>   <!-- /details -->
49   <p class="permalink">
50     <a href="{% url 'quotes:onequote' quote.id %}">Permalink</a>
51   </p>
52 </div>