mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-02-08 12:17:52 +00:00
Better standard entrances report
This commit is contained in:
@@ -7,14 +7,27 @@
|
||||
|
||||
<h1>Entrance Index</h1>
|
||||
|
||||
{% 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>
|
||||
<table>
|
||||
<theader>
|
||||
<tr><th>Name</th><th>Caves</th><th>Point</th><th>Position</th></tr>
|
||||
<tr><th>Entrance</th><th>Caves</th><th>Point</th><th>Tag Position</th><th>Other</th></tr>
|
||||
</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>{{ entrance.best_station }}</td><td>{{ entrance.latlong }}</td></tr>
|
||||
<tr><td>{{ entrance }}</td><td>{% for cave in entrance.cavelist %}<a href="{{ cave.url }}">{{ cave }}</a>{% endfor %}</td><td>
|
||||
{% if entrance.best_station%}
|
||||
{{ entrance.best_station }}
|
||||
{% endif %}</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>
|
||||
|
||||
<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>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user