[svn r8210] calendar.html used django 1.1 {% empty %} syntax, but older version on server so I had to change it

This commit is contained in:
aaron 2009-01-20 06:36:45 +01:00
parent a8d5cecac9
commit 841944d564
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 %}