summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-01 20:54:29 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-01 20:54:29 +0200
commit7c0518c1165da54134837bde0363b19e99f5c983 (patch)
treea171b0e3dc5fc0c99fddd568e3164656113e2493
parentb8eede4e63e5f79bf11a6182ebb8cc749bdb34e6 (diff)
downloadChimère-7c0518c1165da54134837bde0363b19e99f5c983.tar.bz2
Chimère-7c0518c1165da54134837bde0363b19e99f5c983.zip
Template detail: don't display properties with no value
-rw-r--r--chimere/templates/chimere/detail.html4
1 files 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 %}
<p class='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}}</p>
{% endif %}
- {% for property in properties %}
+ {% for property in properties %}{% if property.value %}
<p class='{{property.propertymodel.getNamedId}}'><strong>{{property.propertymodel}}</strong>{% 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}}</p>
- {% endfor %}
+ {% endif %}{% endfor %}
{% if marker.origin %}<p class='detail_source'><strong>{% trans "Source:" %}</strong> <span>{{marker.origin}}</span></p>{% endif %}
{% if marker.license %}<p class='detail_license'><strong>{% trans "License:" %}</strong> <span>{{marker.license}}</span></p>{% endif %}
{% if marker.multimedia_items %}<p class='detail_multimedia'>