From 7c0518c1165da54134837bde0363b19e99f5c983 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 1 Oct 2016 20:54:29 +0200 Subject: Template detail: don't display properties with no value --- chimere/templates/chimere/detail.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html index a89ab9a..a86adf2 100644 --- a/chimere/templates/chimere/detail.html +++ b/chimere/templates/chimere/detail.html @@ -23,9 +23,9 @@ {% if marker.description %}

{{ marker.description|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}

{% endif %} - {% for property in properties %} + {% for property in properties %}{% if property.value %}

{{property.propertymodel}}{% trans ":" %} {{ property.value|sanitize:"p b i br hr strong em img:src:alt span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}

- {% endfor %} + {% endif %}{% endfor %} {% if marker.origin %}

{% trans "Source:" %} {{marker.origin}}

{% endif %} {% if marker.license %}

{% trans "License:" %} {{marker.license}}

{% endif %} {% if marker.multimedia_items %}

-- cgit v1.2.3