From 0135d47536dff8e8cf83dbe1965588759bfcf365 Mon Sep 17 00:00:00 2001
From: Philip Sargent
Date: Thu, 24 Jul 2025 16:06:42 +0200
Subject: [PATCH] tidied format of caves index page
---
templates/caveindex.html | 135 ++------------------------------
templates/cavelist_columns.html | 25 ++++++
templates/entranceindex.html | 2 +-
3 files changed, 34 insertions(+), 128 deletions(-)
create mode 100644 templates/cavelist_columns.html
diff --git a/templates/caveindex.html b/templates/caveindex.html
index bb6fff1..e522ada 100644
--- a/templates/caveindex.html
+++ b/templates/caveindex.html
@@ -34,36 +34,13 @@ Black triangle ▲ against a name indicat
Cave Number Index - kept updated
+
+
{% for cave in caves1624 %}
- | {% 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 %}
- {% if cave.filename %}
- {% if cave.no_location %}▲{% endif %}
- {% if cave.entrances %}
- {% else %}▲
- {% endif %}
- {% else %}▼
- {% endif %}
- {% if cave.survex_file %}{% else %}
- {% if cave.fully_explored %}
- *
- {% else %}
- *
- {% endif %}
+ {% include 'cavelist_columns.html' %}
- {% endif %} |
-
{% endfor %}
diff --git a/templates/cavelist_columns.html b/templates/cavelist_columns.html
new file mode 100644
index 0000000..79cd7cb
--- /dev/null
+++ b/templates/cavelist_columns.html
@@ -0,0 +1,25 @@
+
|
+ {% 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 %}
+ {% if cave.filename %}
+ {% if cave.entrances %}
+ {% if cave.no_location %}▲{% endif %}
+ {% else %}▲
+ {% endif %}
+ {% else %}▼
+ {% endif %}
+ {% if cave.survex_file %}{% else %}
+ {% if cave.fully_explored %}
+ *
+ {% else %}
+ *
+ {% endif %}
+
+ {% endif %}
+ |
diff --git a/templates/entranceindex.html b/templates/entranceindex.html
index 3830b8e..92d8d44 100644
--- a/templates/entranceindex.html
+++ b/templates/entranceindex.html
@@ -7,7 +7,7 @@
Entrance Index
-{% for entrance in entrances %}{% if entrance.lat_wgs84 %}
{{ entrance }} has "floating" lat/long
{{entrance.lat_wgs84}} N, {{entrance.long_wgs84}} E instead of having a proper tag station or other station
{% endif %}{% endfor %}
+{% for entrance in entrances %}{% if entrance.lat_wgs84 %}
{{ entrance }} has "floating" lat/long
{{entrance.lat_wgs84}} N, {{entrance.long_wgs84}} E [instead of/as well as] having a proper tag station or other station
{% endif %}{% endfor %}