From 6039e8b31fefc499499f82b5e5f31caea1f55be6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 13 Dec 2010 12:47:14 +0100 Subject: Allow target attribute for link in descriptions (closes #289) --- chimere/rss/templates/rss_descr.html | 2 +- chimere/templates/404.html | 3 --- chimere/templates/500.html | 3 --- chimere/templates/detail.html | 2 +- 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 @@
{% if obj.picture %}{{obj.name}}{%endif%}
{% for property in obj.getProperties %} -

{{ property.value|sanitize:"p b i br hr strong em span:style a:href ul li ol h1 h2 h3 h4"|safe }}

+

{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}

{% endfor %}
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 %}

{% trans "Page not found" %}

-{% 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 %}

{% trans "Internal server error"%}

-{% 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"}}

{% endif %} {% endif %} {% for property in marker.getProperties %} -

{{ property.value|sanitize:"p b i br hr strong em span:style a:href ul li ol h1 h2 h3 h4"|safe}}

+

{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe}}

{% endfor %} {% 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 %}

{{news.name}} – {{ news.start_date }}{% if news.end_date %} - {{ news.end_date }}{% endif %}

{% for property in news.getProperties %} -

{{ property.value|sanitize:"p b i br hr strong em span:style a:href ul li ol h1 h2 h3 h4"|safe }}

+

{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}

{% endfor %} {% endif %} -- cgit v1.2.3