2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-28 10:02:10 +00:00
troggle/templates/entranceindex.html

40 lines
1.4 KiB
HTML
Raw Normal View History

2023-07-03 08:00:03 +01:00
{% extends "cavebase.html" %}
{% block title %}Entrance Index{% endblock %}
{% block content %}
<h1>Entrance Index</h1>
2023-10-14 23:11:21 +01:00
{% for entrance in entrances %}{% if entrance.lat_wgs84 %}<a href="{{ entrance.firstcave.url }}">{{ entrance }}</a> has "floating" lat/long <em>{{entrance.lat_wgs84}} N, {{entrance.long_wgs84}} E</em> instead of having a proper tag station or other station<br />{% endif %}{% endfor %}
<p>
2023-07-03 08:00:03 +01:00
<table>
<theader>
2023-10-14 23:11:21 +01:00
<tr><th>Entrance</th><th>Caves</th><th>Point</th><th>Tag Position</th><th>Other</th></tr>
2023-07-03 08:00:03 +01:00
</theader>
<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 id="{{ entrance.best_station }}"><a href="/stations#{{ entrance.best_station }}">
2023-10-14 23:11:21 +01:00
{% if entrance.best_station%}
{{ entrance.best_station }}
{% endif %}
</a></td>
2023-10-14 23:11:21 +01:00
<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>
<td>{% if entrance.other %}
<a href="https://www.openstreetmap.org/?mlat={{ entrance.other.latlong.0|floatformat:7}}&mlon={{entrance.other.latlong.1|floatformat:7}}">{{ entrance.other.latlong.0|floatformat:5}} N, {{ entrance.other.latlong.1|floatformat:5 }} E</a>
{% endif %}</td>
</tr>
2023-07-03 08:00:03 +01:00
{% endfor %}
</tbody>
</ul>
{% endblock %}