diff --git a/parsers/caves.py b/parsers/caves.py
index 5304599..a38434e 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -402,7 +402,7 @@ def read_entrance(filename, ent=None):
DataIssue.objects.create(parser="entrances", message=message, url=f"/cave/{slug}/edit/")
print(message)
- lastvisit = getXML(entrancecontents, "last visit date", maxItems=1, minItems=0, context=context)
+ lastvisit = getXML(entrancecontents, "lastvisit", maxItems=1, minItems=0, context=context)
alt = getXMLmax1("alt")
approach = getXMLmax1("approach")
diff --git a/templates/cave.html b/templates/cave.html
index 1bdb683..a8c0c5e 100644
--- a/templates/cave.html
+++ b/templates/cave.html
@@ -151,6 +151,9 @@
{% if ent.entrance.location_description %}
Location{{ ent.entrance.location_description|safe }}
{% endif %}
+ {% if ent.entrance.lastvisit %}
+ Date last visited{{ ent.entrance.lastvisit|safe }}
+ {% endif %}
{% if ent.entrance.approach %}
Approach{{ ent.entrance.approach|safe }}
{% endif %}
diff --git a/templates/cave_entrances.html b/templates/cave_entrances.html
deleted file mode 100644
index ed02e68..0000000
--- a/templates/cave_entrances.html
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
{% if cave.entrances %}
-
Entrances
-
- {% for ent in cave.entrances %}
- -
- {{ ent.entrance_letter|safe }}
- {% if ent.entrance.name %}
- {{ ent.entrance.name|safe }}
- {% endif %}Edit
-
- {% if ent.entrance.marking %}
- - Marking
- {{ ent.entrance.marking_val|safe }}
- {% endif %}
- {% if ent.entrance.marking_comment %}
- - Marking Comment
- {{ ent.entrance.marking_comment|safe }}
- {% endif %}
- {% if ent.entrance.findability %}
- - Findability
- {{ ent.entrance.findability_val|safe }}
- {% endif %}
- {% if ent.entrance.findability_comment %}
- - Findability Comment
- {{ ent.entrance.findability_comment|safe }}
- {% endif %}
- {% if ent.entrance.location_description %}
- - Location
- {{ ent.entrance.location_description|safe }}
- {% endif %}
- {% if ent.entrance.lastvisit %}
- - Location
- {{ ent.entrance.lastvisit|safe }}
- {% endif %}
- {% if ent.entrance.approach %}
- - Approach
- {{ ent.entrance.approach|safe }}
- {% endif %}
- {% if ent.entrance.map_description %}
- - Map
- {{ ent.entrance.map_description|safe }}
- {% endif %}
- {% if ent.entrance.underground_description %}
- - Underground
- {{ ent.entrance.underground_description|safe }}
- {% endif %}
- {% if ent.entrance.photo %}
- - Photo
- {{ ent.entrance.photo|safe }}
- {% endif %}
- {% if ent.entrance.entrance_description %}
- - Description
- {{ ent.entrance.entrance_description|safe }}
- {% endif %}
- {% if ent.entrance.explorers %}
- - Explorers
- {{ ent.entrance.explorers|safe }}
- {% endif %}
- {% if ent.entrance.northing %}
- - Location
- {{ ent.entrance.northing|safe }}, {{ ent.entrance.easting|safe }}, {{ ent.entrance.alt|safe }}m
- {% endif %}
- {% if ent.entrance.tag_station %}
- - Tag Location
- {{ ent.entrance.tag_station }} {{ ent.entrance.tag.y|safe }}, {{ ent.entrance.tag.x|safe }}, {{ ent.entrance.tag.z|safe }}m
- {% endif %}
- {% if ent.entrance.bearings %}
- - Bearings
- {{ ent.entrance.bearings|safe }}
- {% endif %}
- {% if ent.entrance.exact_station %}
- - Exact Station
- {{ ent.entrance.exact_station|safe }} {{ ent.entrance.exact_location.y|safe }}, {{ ent.entrance.exact_location.x|safe }}, {{ ent.entrance.exact_location.z|safe }}m
- {% endif %}
- {% if ent.entrance.other_station %}
- - Other Station
- {{ ent.entrance.other_station|safe }}
- {% if ent.entrance.other_description %}
- - {{ ent.entrance.other_description|safe }}
- {% endif %} {{ ent.entrance.other_location.y|safe }}, {{ ent.entrance.other_location.x|safe }}, {{ ent.entrance.other_location.z|safe }}m
-
- {% endif %}
-
-
- {% endfor %}
-
-
-{% endif %}
-
New Entrance
-