diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-12-13 12:47:14 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-12-13 12:47:14 +0100 |
commit | 6039e8b31fefc499499f82b5e5f31caea1f55be6 (patch) | |
tree | d093b130194f89b31e35f9abafc56f3fdd701d96 | |
parent | 2cb48fb94cbd43226b279f45d87840130ee44236 (diff) | |
download | Chimère-6039e8b31fefc499499f82b5e5f31caea1f55be6.tar.bz2 Chimère-6039e8b31fefc499499f82b5e5f31caea1f55be6.zip |
Allow target attribute for link in descriptions (closes #289)
-rw-r--r-- | chimere/rss/templates/rss_descr.html | 2 | ||||
-rw-r--r-- | chimere/templates/404.html | 3 | ||||
-rw-r--r-- | chimere/templates/500.html | 3 | ||||
-rw-r--r-- | chimere/templates/detail.html | 2 | ||||
-rw-r--r-- | chimere/templates/welcome.html | 2 |
5 files changed, 3 insertions, 9 deletions
diff --git a/chimere/rss/templates/rss_descr.html b/chimere/rss/templates/rss_descr.html index 97a9c50..4f75ac6 100644 --- a/chimere/rss/templates/rss_descr.html +++ b/chimere/rss/templates/rss_descr.html @@ -3,6 +3,6 @@ <div id='detail_content'> {% if obj.picture %}<img src='{{obj.picture.url}}' alt="{{obj.name}}"/>{%endif%} <div>{% for property in obj.getProperties %} -<p id='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href ul li ol h1 h2 h3 h4"|safe }}</p> +<p id='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}</p> {% endfor %}</div> </div> diff --git a/chimere/templates/404.html b/chimere/templates/404.html index d7d0de0..96adb13 100644 --- a/chimere/templates/404.html +++ b/chimere/templates/404.html @@ -1,5 +1,2 @@ {% load i18n %} -{% extends "base.html" %} -{% block content %} <h2>{% trans "Page not found" %}</h2> -{% endblock %} diff --git a/chimere/templates/500.html b/chimere/templates/500.html index a230d92..18f6c13 100644 --- a/chimere/templates/500.html +++ b/chimere/templates/500.html @@ -1,5 +1,2 @@ {% load i18n %} -{% extends "base.html" %} -{% block content %} <h2>{% trans "Internal server error"%}</h2> -{% endblock %} diff --git a/chimere/templates/detail.html b/chimere/templates/detail.html index cfde67f..a1b61b6 100644 --- a/chimere/templates/detail.html +++ b/chimere/templates/detail.html @@ -9,7 +9,7 @@ {% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}</p>{% endif %}</span> {% endif %} {% for property in marker.getProperties %} -<p id='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href ul li ol h1 h2 h3 h4"|safe}}</p> +<p id='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe}}</p> {% endfor %} </div>{% if share_networks %} {% if simple %}{% trans "Share on"%}{% for share_network in share_networks %} diff --git a/chimere/templates/welcome.html b/chimere/templates/welcome.html index 36a0b71..cbc9c4c 100644 --- a/chimere/templates/welcome.html +++ b/chimere/templates/welcome.html @@ -13,7 +13,7 @@ {% else %} <h3>{{news.name}} – {{ news.start_date }}{% if news.end_date %} - {{ news.end_date }}{% endif %}</h3> {% for property in news.getProperties %} - <p id='{{news.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href ul li ol h1 h2 h3 h4"|safe }}</p> + <p id='{{news.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}</p> {% endfor %} <p class='marker_link'><a href='{{ news.get_absolute_url }}'>{% trans "See it on the map"%}</a></p> {% endif %} |