- <p class="author">
- — <span class="name"><a href="{% url 'quotes:author' quote.author.id %}">
- {{ quote.author.name }}
- </a></span>
- </p>
-
- {% if quote.tags.all %}
- <p class="tags">
- Tags:
- {% for tag in quote.tags.all %}
- <a href="{% url 'quotes:tags' tag.id %}" class="tag_link">
- {{ tag.tag }}
- </a>
- {% endfor %}
- </p>
- {% endif %}
+ <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>
+ <p class="author">
+ — <span class="name">
+ <a href="{% url 'quotes:author' quote.work.author.id %}"
+ class="author_name">{{ quote.work.author.name }}</a>,
+ <a href="{% url 'quotes:work' quote.work.id %}"
+ class="work_name">{{ quote.work.name }}</a>
+ </span>
+ </p>
+ <div class="quote_notes">
+ <p>{{ quote.notes|safe }}</p>
+ </div>
+ {% if not skip_work_notes %}
+ {% include "quotes/work_notes.html" with work=quote.work %}
+ {% endif %}
+ {% if not skip_author_notes %}
+ {% include "quotes/author_notes.html" with author=quote.work.author %}
+ {% endif %}
+ {% if quote.tags.all %}
+ <p class="tags">
+ Tags:
+ {% for tag in quote.tags.all %}
+ <a href="{% url 'quotes:tags' tag.id %}" class="tag_link"
+ >{{ tag.tag }}</a
+ >{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ </p>
+ {% endif %}