From c97636e729611e16d9ae94cd5c4cf80053a35b98 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 19 Nov 2010 20:15:43 +0100 Subject: Rough integration of templates by Pierre Clarenc and Samuel Renard (refs #65) --- chimere/rss/templates/rss.html | 65 ++++++++++++++++++++++++++++++++++++ chimere/rss/templates/rss_descr.html | 7 ++++ chimere/rss/templates/rss_title.html | 2 ++ 3 files changed, 74 insertions(+) create mode 100644 chimere/rss/templates/rss.html create mode 100644 chimere/rss/templates/rss_descr.html create mode 100644 chimere/rss/templates/rss_title.html diff --git a/chimere/rss/templates/rss.html b/chimere/rss/templates/rss.html new file mode 100644 index 0000000..bb656e3 --- /dev/null +++ b/chimere/rss/templates/rss.html @@ -0,0 +1,65 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block sidebar %} +{% endblock %} + +{% block content %} + +
+{% trans "Subscribe to RSS feed" %} +

* {% trans "indicates a mandatory field" %}

+ +

{{ error_message }}

+ +
+{%if not category_rss_feed %} +
+ + +
+{% endif %} + +{%ifequal category_rss_feed "category" %} +
+ + +
+{% endifequal %} + +{%ifequal category_rss_feed "area" %} +
+ + +
+
+

{% trans "Or select a location for this new site :" %}

+ {{form.area}} +
+{% endifequal %} + + +

+
+ +
+ +{% endblock %} diff --git a/chimere/rss/templates/rss_descr.html b/chimere/rss/templates/rss_descr.html new file mode 100644 index 0000000..f94b061 --- /dev/null +++ b/chimere/rss/templates/rss_descr.html @@ -0,0 +1,7 @@ +{% load i18n %} +
+{% if obj.picture %}{{obj.name}}{%endif%} +
{% for property in obj.getProperties %} +

{{ property.value|safe }}

+{% endfor %}
+
diff --git a/chimere/rss/templates/rss_title.html b/chimere/rss/templates/rss_title.html new file mode 100644 index 0000000..5b379e7 --- /dev/null +++ b/chimere/rss/templates/rss_title.html @@ -0,0 +1,2 @@ +{% load i18n %} +{{ obj.name }} -- cgit v1.2.3