diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2016-01-05 18:31:37 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2016-01-05 18:31:37 +0100 |
commit | a06c5862b1e982ea44a79d74a52ad8c9258c64aa (patch) | |
tree | 20b029230bf64cf71d8ae249d226749a0b36b342 | |
parent | c3647082a8c0e98c045399b109d5d56ef67fbc74 (diff) | |
download | Chimère - projet Saclay-a06c5862b1e982ea44a79d74a52ad8c9258c64aa.tar.bz2 Chimère - projet Saclay-a06c5862b1e982ea44a79d74a52ad8c9258c64aa.zip |
Permettre les images dans les descriptifs
-rw-r--r-- | templates/chimere/detail.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html index 65e9600..a23da7d 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"|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"|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"|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"|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> |