summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2016-01-05 18:37:24 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2016-01-05 18:37:24 +0100
commit5fca027f499119b38d69fb1e3f879bab4fa804ce (patch)
tree09803d7be0888cbad645c8f957b953221b230c44
parenta06c5862b1e982ea44a79d74a52ad8c9258c64aa (diff)
downloadChimère - projet Saclay-5fca027f499119b38d69fb1e3f879bab4fa804ce.tar.bz2
Chimère - projet Saclay-5fca027f499119b38d69fb1e3f879bab4fa804ce.zip
Permettre les images dans les descriptifs (bis)
-rw-r--r--templates/chimere/detail.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html
index a23da7d..5f576d7 100644
--- a/templates/chimere/detail.html
+++ b/templates/chimere/detail.html
@@ -21,10 +21,10 @@
{% if marker.end_date %} - {{marker.end_date|date:"l d F Y"}}</p>{% endif %}</span>
{% endif %}
{% if marker.description %}
- <div id='description_long_{{marker.pk}}' class='description'>{{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th img"|safe}}</div>
+ <div id='description_long_{{marker.pk}}' class='description'>{{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th img img:src"|safe}}</div>
{% endif %}
{% for property in marker.getProperties %}{% if property.value %}
- <div class='properties' id='{{property.propertymodel.getAttrName}}'><strong>{{property.propertymodel.name}}</strong> : {% if 'http://' in property.value or 'https://' in property.value %}<a href='{{ property.value|sanitize:""}}'>{%endif%}{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th img"|safe}}{% if 'http://' in property.value or 'https://' in property.value %}</a>{%endif%}</div>
+ <div class='properties' id='{{property.propertymodel.getAttrName}}'><strong>{{property.propertymodel.name}}</strong> : {% if 'http://' in property.value or 'https://' in property.value %}<a href='{{ property.value|sanitize:""}}'>{%endif%}{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th img img:src"|safe}}{% if 'http://' in property.value or 'https://' in property.value %}</a>{%endif%}</div>
{%endif%}{% endfor %}
{% if marker.origin %}
<div class='origin'><label>Source :</label> {{marker.origin|safe}}</div>