Entrance locations new report - url to cave

This commit is contained in:
Philip Sargent
2021-05-07 23:21:57 +01:00
parent 1ff723554c
commit 8c5fdf5021
3 changed files with 24 additions and 8 deletions

View File

@@ -6,18 +6,21 @@
<h1>Entrance locations</h1>
<p>
This is work in progress (May 2021).
These are all the locations specified in Northing/Easting coordinates in the system.
<table>
<tr><th>Entrance</th><th>Easting</th><th>Northing</th><th>tag</th><th>tag exact</th><th>tag other</th></tr>
<tr><th>Cave</th><th>Entrance</th><th>Easting</th><th>Northing</th><th>tag</th><th>tag exact</th><th>tag other</th><th>slug</th></tr>
{% for ent in ents %}
<tr>
<td style="text-align:left"><a href="{{ ent.name }}">{{ent.name|safe}}</a></td>
<td style="text-align:left"><a href="/cave/{{ent.cached_primary_slug}}">
{% for c in ent.cavelist %}{{c.official_name|safe}}{% endfor %}</a></td>
<td style="text-align:left">{{ent.name|safe}}</td>
<td style="text-align:right">{{ent.easting|floatformat:2}}</td>
<td style="text-align:right">{{ent.northing|floatformat:2}}</td>
<td style="text-align:right">{{ent.tag_station}}</td>
<td style="text-align:right">{{ent.exact_station}}</td>
<td style="text-align:right">{{ent.other_station}}</td>
<td style="text-align:right">{{ent.slug}}</td>
</tr>
{% endfor %}
</table>