[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
This commit is contained in:
substantialnoninfringinguser 2009-05-13 05:42:57 +01:00
parent 6947e43caf
commit 6598dd5105
2 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -5,6 +5,6 @@
{% block content %}
{% for cave in caves %}
<p>{{ cave }} <a href="{{settings.URL_ROOT}}{{ cave.kataster_number }}/">{{ cave.official_name|wiki_to_html_short }}</a> </p>
<p>{{ cave }} <a href="{{settings.URL_ROOT}}cave/{{ cave.kataster_number }}/">{{ cave.official_name|wiki_to_html_short }}</a> </p>
{% endfor %}
{% endblock %}