summaryrefslogtreecommitdiffstats
path: root/templates/calendar.html
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:42:57 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:42:57 +0100
commit6598dd510539a9060dc6a38a3cd38b6228e57b88 (patch)
treed0e55d217ce76e94cdab23cd82f164573b5a1615 /templates/calendar.html
parent6947e43caf12cb3fec2616215e64e22760bc05ba (diff)
downloadtroggle-6598dd510539a9060dc6a38a3cd38b6228e57b88.tar.gz
troggle-6598dd510539a9060dc6a38a3cd38b6228e57b88.tar.bz2
troggle-6598dd510539a9060dc6a38a3cd38b6228e57b88.zip
[svn] calendar.html used django 1.1 {% empty %} syntax, but older version on server so I had to change it
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8210 by aaron @ 1/20/2009 5:36 AM
Diffstat (limited to 'templates/calendar.html')
-rw-r--r--templates/calendar.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/calendar.html b/templates/calendar.html
index 70d3ecf..b4ad49d 100644
--- a/templates/calendar.html
+++ b/templates/calendar.html
@@ -49,13 +49,13 @@
<td class="name">
{{ personexpedition.person }}
</td>
+ {% if personexpedition.ListDaysTF %}
{% for dateTF in personexpedition.ListDaysTF %}
<td {{ dateTF|yesno:"class='yes',class='no'"|safe }}></td>
- {% empty %}
- <td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
{% endfor %}
-
-
+ {% else %}
+ <td colspan="{{ expedition.ListDays|length }}"><center>No data.</center></td>
+ {% endif %}
</tr>
{% endfor %}
</table>