summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/calendar.html8
-rw-r--r--templates/caveindex.html2
2 files changed, 5 insertions, 5 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>
diff --git a/templates/caveindex.html b/templates/caveindex.html
index 8b9ef37..d97aff8 100644
--- a/templates/caveindex.html
+++ b/templates/caveindex.html
@@ -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 %} \ No newline at end of file