From 060697325678491b635afba501ffae7abe09c468 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Perrin?= Date: Tue, 1 Nov 2016 00:55:22 +0000 Subject: [PATCH] Fix template for HTML bits --- quotes/templates/quotes/author_notes.html | 2 +- quotes/templates/quotes/display.html | 12 +++++++----- quotes/templates/quotes/work_notes.html | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/quotes/templates/quotes/author_notes.html b/quotes/templates/quotes/author_notes.html index d666de6..ecc8380 100644 --- a/quotes/templates/quotes/author_notes.html +++ b/quotes/templates/quotes/author_notes.html @@ -1,5 +1,5 @@ {% if author.notes %}
-

{{ author.notes|safe }}

+ {{ author.notes|safe }}
{% endif %} diff --git a/quotes/templates/quotes/display.html b/quotes/templates/quotes/display.html index d15cc05..a9ff5cf 100644 --- a/quotes/templates/quotes/display.html +++ b/quotes/templates/quotes/display.html @@ -1,7 +1,7 @@
-

+

{{ quote.text|safe }} -

+

@@ -20,9 +20,11 @@ class="work_name">{{ quote.work.name }}

-
-

{{ quote.notes|safe }}

-
+ {% if quote.notes %} +
+ {{ quote.notes|safe }} +
+ {% endif %} {% if not skip_work_notes %} {% include "quotes/work_notes.html" with work=quote.work %} {% endif %} diff --git a/quotes/templates/quotes/work_notes.html b/quotes/templates/quotes/work_notes.html index 995c89c..abb050f 100644 --- a/quotes/templates/quotes/work_notes.html +++ b/quotes/templates/quotes/work_notes.html @@ -1,5 +1,5 @@ {% if work.notes %}
-

{{ work.notes|safe }}

+ {{ work.notes|safe }}
{% endif %} -- 2.43.0