From 8484f26ee9e9a1e6731ed02768d7ee686bdc016a Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 18 Jul 2022 16:16:58 +0300 Subject: [PATCH] Fix URL links and better name display --- templates/eastings.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/templates/eastings.html b/templates/eastings.html index 1657ea1..a5ea9db 100644 --- a/templates/eastings.html +++ b/templates/eastings.html @@ -22,9 +22,22 @@ Coordinate systems in Austria are explained in:
CaveEntranceEastingNorthingtagtag exacttag otherslug {% for ent in ents %} - - {% for c in ent.cavelist %}{{c.official_name|safe}}{% endfor %} - {{ent.name|safe}} + + {% for c in ent.cavelist %} + + {% if c.official_name %} + {{c.official_name|safe}} + {% else %} + Unnamed: {{c|safe}} + {% endif %}
+ {% endfor %} + + {% if ent.name %} + {{ent.name|safe}} + {% else %} + Unnamed: {{ent|safe}} + {% endif %} + {{ent.easting|floatformat:2}} {{ent.northing|floatformat:2}} {{ent.tag_station}}