From 969ed6cce5ff24fe6183d9a3beeda516ff61ad4e Mon Sep 17 00:00:00 2001
From: Philip Sargent
Date: Sat, 20 May 2023 22:47:09 +0300
Subject: [PATCH] added 1627 caves to 'caves'page
---
core/views/caves.py | 4 ++-
templates/caveindex.html | 62 ++++++++++++++++++++++++++++------------
2 files changed, 46 insertions(+), 20 deletions(-)
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
-
-
-
- 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
+
+
+
+ New Cave
Cave Number Index - kept updated
-
+
+
+1627
+
+
+
+ New Cave
+ Cave Number Index - kept updated
+
{% endblock %}