summaryrefslogtreecommitdiffstats
path: root/templates/entranceindex.html
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-02 19:24:07 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-02 19:24:07 +0200
commit685131a4c16578d6370cdd8db37f8b0cc4d7fa1f (patch)
treed506450ff8bfba1de4a8344d4c7cb83cf4395523 /templates/entranceindex.html
parentc95e6e8097bdf513e47f73e095ec3eb43013f2d1 (diff)
downloadtroggle-685131a4c16578d6370cdd8db37f8b0cc4d7fa1f.tar.gz
troggle-685131a4c16578d6370cdd8db37f8b0cc4d7fa1f.tar.bz2
troggle-685131a4c16578d6370cdd8db37f8b0cc4d7fa1f.zip
tidied tables of stations and entrances
Diffstat (limited to 'templates/entranceindex.html')
-rw-r--r--templates/entranceindex.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/entranceindex.html b/templates/entranceindex.html
index 115c33b..6c26c9d 100644
--- a/templates/entranceindex.html
+++ b/templates/entranceindex.html
@@ -16,10 +16,12 @@
<tbody>
<ul>
{% for entrance in entrances %}
-<tr><td>{{ entrance }}</td><td>{% for cave in entrance.cavelist %}<a href="{{ cave.url }}">{{ cave }}</a>{% endfor %}</td><td>
+<tr><td>{{ entrance }}</td><td>{% for cave in entrance.cavelist %}<a href="{{ cave.url }}">{{ cave }}</a>{% endfor %}</td>
+<td id="{{ entrance.best_station }}"><a href="/stations#{{ entrance.best_station }}">
{% if entrance.best_station%}
{{ entrance.best_station }}
-{% endif %}</td>
+{% endif %}
+</a></td>
<td>{% if entrance.tag %}
<a href="https://www.openstreetmap.org/?mlat={{ entrance.tag.latlong.0|floatformat:7}}&mlon={{entrance.tag.latlong.1|floatformat:7}}">{{ entrance.tag.latlong.0|floatformat:5}} N, {{ entrance.tag.latlong.1|floatformat:5 }} E</a>
{% endif %}</td>