summaryrefslogtreecommitdiff
path: root/templates/chimere/blocks/news.html
diff options
context:
space:
mode:
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 %}