summaryrefslogtreecommitdiff
path: root/templates/chimere/blocks/news.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-04 20:21:56 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-06-04 20:21:56 +0200
commit7af3588c0ab756a491827f2cc17c6ab0a597a298 (patch)
treec3abb4accf58f3c3ff956bc4966f82db02270664 /templates/chimere/blocks/news.html
parent6276e56a0c0b847ffc7dd36ff226a7042e0293d0 (diff)
parent9debc5422a42e743e8a7de6365cec7971c4a1c7d (diff)
downloadChimère - projet Saclay-saclay-mobile.tar.bz2
Chimère - projet Saclay-saclay-mobile.zip
Merge branch 'saclay' into saclay-mobilesaclay-mobile
Conflicts: static/saclay/css/saclay.css static/saclay/css/styles.css templates/chimere/base.html templates/chimere/detail.html templates/chimere/main_map.html
Diffstat (limited to 'templates/chimere/blocks/news.html')
-rw-r--r--templates/chimere/blocks/news.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/chimere/blocks/news.html b/templates/chimere/blocks/news.html
index 84dfe04..3788b64 100644
--- a/templates/chimere/blocks/news.html
+++ b/templates/chimere/blocks/news.html
@@ -1,5 +1,4 @@
{% load i18n sanitize chimere_tags %}
-{% if news_lst %}
<script type='text/javascript'>
<!--
$(function(){
@@ -14,6 +13,7 @@ $(function(){
<div id='news' style='display:none'>
<h2>{% trans "News" %}</h2>
<div class='news'>
+ {% if news_lst %}
{% for news in news_lst %}
<div class='info'>
{% if news.title %}
@@ -34,7 +34,11 @@ $(function(){
</p>
</div>
{%endfor%}
+ {% else %}
+ <div class='info'>
+ <em>{% trans "No news today."%}</em>
+ </div>
+ {% endif %}
</div>
</div>
-{% endif %}