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 5be6bcd..0d51f27 100644
--- a/chimere/templates/welcome.html
+++ b/chimere/templates/welcome.html
@@ -42,8 +42,16 @@ notamment sur les critères de sélection, n'hésitez pas à lire la <a href='ch
</div>
{% if news_lst %}{% 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%}{%endif%}</div>
</div>