From: anas Date: Wed, 21 Oct 2015 19:27:56 +0000 (+0200) Subject: Allowing html in collections' description X-Git-Tag: 1.6b~7^2~63 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6e20a3ce98c5f1cdcb06b717cfd1a0a9be3f6ff6;p=telemeta.git Allowing html in collections' description --- diff --git a/telemeta/templates/telemeta/collection_detail.html b/telemeta/templates/telemeta/collection_detail.html index c9804fef..7184d11e 100644 --- a/telemeta/templates/telemeta/collection_detail.html +++ b/telemeta/templates/telemeta/collection_detail.html @@ -100,9 +100,10 @@
{% trans "Document status" %}
{{ collection.document_status }}
{% if collection.description %} - {% dl_field collection "description" %} - {% endif %} - {% dl_field collection "recording_context" %} +
{% trans "Description" %}
+
{{ collection.description|html_line_break|safe }}
+ {% endif %} + {% dl_field collection "recording_context" %}
{% trans "Recording period" %}
{% if collection.recorded_from_year %}{{ collection.recorded_from_year }}{% endif %}{% if collection.recorded_from_year and collection.recorded_to_year %} - {% endif %}{% if collection.recorded_to_year %}{{ collection.recorded_to_year}}{% endif %}
{% if '_E_' in collection.public_id %} diff --git a/telemeta/templates/telemeta/inc/children_list.html b/telemeta/templates/telemeta/inc/children_list.html index d994d395..7cc392d5 100644 --- a/telemeta/templates/telemeta/inc/children_list.html +++ b/telemeta/templates/telemeta/inc/children_list.html @@ -28,7 +28,7 @@
{% endif %} - {% if child.descriptions %}{{ child.descriptions }}{% else %}{{ child.description }}{% endif %} + {% if child.descriptions %}{{ child.descriptions|safe }}{% else %}{{ child.description|safe }}{% endif %} {{ child.code }} {% endif %}