From: Guillaume Pellerin Date: Thu, 2 Jan 2014 09:43:59 +0000 (+0100) Subject: no publish references if empty X-Git-Tag: 1.4.5-1~17 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ea8b2566f5cf8702f92b1e7f241c7b111fad0ce1;p=telemeta.git no publish references if empty --- diff --git a/telemeta/templates/telemeta/mediaitem_detail.html b/telemeta/templates/telemeta/mediaitem_detail.html index 7fe242ef..b232e3e7 100644 --- a/telemeta/templates/telemeta/mediaitem_detail.html +++ b/telemeta/templates/telemeta/mediaitem_detail.html @@ -279,8 +279,10 @@ Item : {{ item }} {% dl_field item "old_code" %} {% dl_field item "track" %} {% dl_field item "creator_reference" %} -
{% trans "Published references" %}
-
{{ item.external_references|html_line_break|safe }}
+ {% if item.external_references %} +
{% trans "Published references" %}
+
{{ item.external_references|html_line_break|safe }}
+ {% endif %}
{% trans "Remarks" %}
{{ item.comment|html_line_break|safe }}