Repository :
http://git.fedorahosted.org/cgit/fedocal.git
On branch : master
---------------------------------------------------------------
commit 8f296243d051ace14e5e5bdde684068d4931c914
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Dec 13 12:15:35 2012 +0100
Sometime (like when there are no agenda in) there are no meetings
So the dictionnary is None and accessing its content will fail.
---------------------------------------------------------------
fedocal/templates/agenda.html | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fedocal/templates/agenda.html b/fedocal/templates/agenda.html
index 298cf4f..53616e8 100644
--- a/fedocal/templates/agenda.html
+++ b/fedocal/templates/agenda.html
@@ -79,9 +79,11 @@
{% endfor %}
<tr>
<th rowspan="2" class="time">00h00</th>
+ {% if meetings %}
{% for meeting_list in meetings['23h30'] %}
{{ render_meetings(meeting_list, loop.index) }}
{% endfor %}
+ {% endif %}
</tr>
<tr>
<td colspan="7" class="empty"></td>