From: Frédéric Perrin Date: Tue, 1 Nov 2016 00:55:22 +0000 (+0000) Subject: Fix template for HTML bits X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=commitdiff_plain;h=060697325678491b635afba501ffae7abe09c468 Fix template for HTML bits --- 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 %}