diff --git a/core/views/caves.py b/core/views/caves.py index c468362..c3675a5 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -127,12 +127,14 @@ def caveindex(request): Cave.objects.all() caves1623 = list(Cave.objects.filter(area__short_name="1623")) caves1626 = list(Cave.objects.filter(area__short_name="1626")) + caves1627 = list(Cave.objects.filter(area__short_name="1627")) caves1623.sort(key=caveKey) caves1626.sort(key=caveKey) + caves1627.sort(key=caveKey) return render( request, "caveindex.html", - {"caves1623": caves1623, "caves1626": caves1626, "notablecaves": getnotablecaves(), "cavepage": True}, + {"caves1623": caves1623, "caves1626": caves1626, "caves1627": caves1627, "notablecaves": getnotablecaves(), "cavepage": True}, ) diff --git a/templates/caveindex.html b/templates/caveindex.html index ec17baf..adb42be 100644 --- a/templates/caveindex.html +++ b/templates/caveindex.html @@ -11,27 +11,21 @@

Notable caves

-

1626

-
- - {% for cave in caves1626 %} - - {% endfor %} -
{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}} {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}} {% endif %}
-
- -

- New Cave
- Cave Number Index - kept updated -

-

1623

- +

1623

{% for cave in caves1623 %} @@ -50,8 +44,38 @@
-

-New Cave
+

+ New Cave
+ Cave Number Index - kept updated +

+ +

1626

+
+ + {% for cave in caves1626 %} + + + {% endfor %} +
{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}} {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}} {% endif %}
+
+ +

+ New Cave
Cave Number Index - kept updated -

+

+ +

1627

+
+ + {% for cave in caves1627 %} + + + {% endfor %} +
{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}} {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}} {% endif %}
+
+ +

+ New Cave
+ Cave Number Index - kept updated +

{% endblock %}