summaryrefslogtreecommitdiff
path: root/chimere/templates/welcome.html
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/templates/welcome.html')
-rw-r--r--chimere/templates/welcome.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/chimere/templates/welcome.html b/chimere/templates/welcome.html
index 463f880..8206c18 100644
--- a/chimere/templates/welcome.html
+++ b/chimere/templates/welcome.html
@@ -6,8 +6,16 @@
{% if news_lst %}<div class='news'>
{% for news in news_lst %}
<div class='info'>
- <h3>{{news.title}} - {% trans news.date %}</h3>
+ {% if news.title %}
+ <h3>{{news.title}} &ndash; {{ news.date }}</h3>
<p>{{news.content|safe}}</p>
+ {% else %}
+ <h3>{{news.name}} &ndash; {{ news.start_date }}{% if news.end_date %} - {{ news.end_date }}{% endif %}</h3>
+ {% for property in news.getProperties %}
+ <p id='{{news.propertymodel.getNamedId}}'>{{ property.value|safe }}</p>
+ {% endfor %}
+ <p class='marker_link'><a href='{{ news.get_absolute_url }}'>{% trans "See it on the map"%}</a></p>
+ {% endif %}
</div>
{%endfor%}
</div>{%endif%}