2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-30 13:51:53 +00:00
troggle/templates/cave_debug.html

82 lines
1.4 KiB
HTML
Raw Normal View History

2023-03-28 15:37:25 +01:00
{% extends "base.html" %}
{% block title %}DEBUG page
<!-- cave_debug.html - this text visible because this template has been included -->
{% endblock %}
{% block content %}
2023-11-17 19:26:26 +00:00
<h2>Entrances</h2>
<p>These are Entrances read from the <var>expoweb/entrance_data/*.html</var> files.
These are NOT the *entrance data points in the survex files.
2023-11-18 14:17:50 +00:00
<table>
<tr><th>entrance</th>
<th>ent map</th>
</tr>
{% for ent in ents %}
{% if ent.map_description %}
<tr>
<td>
#{{ent.id}} <a href="{{ent.firstcave.url}}">{{ent}}</a>
</td>
<td>
{{ent.map_description}}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
2023-03-28 15:37:25 +01:00
<table>
2023-03-28 19:26:37 +01:00
<tr><th>entrance</th>
<th>ent slug</th>
2023-11-08 13:34:36 +00:00
<th>Best station </th>
<th>Location</th>
2023-11-17 19:26:26 +00:00
<th>Bearings</th>
2023-03-28 15:37:25 +01:00
</tr>
{% for ent in ents %}
2023-11-08 00:12:21 +00:00
{% if ent.bearings %}
2023-03-28 15:37:25 +01:00
<tr>
2023-11-08 00:12:21 +00:00
2023-03-28 15:37:25 +01:00
<td>
#{{ent.id}} {{ent}}
2023-03-28 15:37:25 +01:00
</td>
<td>
2023-11-08 00:12:21 +00:00
{{ent.slug}}
2023-03-28 15:37:25 +01:00
</td>
<td>
2023-10-07 00:24:41 +01:00
{% if ent.best_station %}{{ent.best_station}}{% endif %}
2023-03-28 15:37:25 +01:00
</td>
<td>
2023-10-07 00:24:41 +01:00
{% if ent.best_station %}{{ent.best_station_object.latlong}}{% endif %}
2023-03-28 15:37:25 +01:00
</td>
2023-11-08 00:12:21 +00:00
<td>
2023-11-08 13:43:19 +00:00
{{ent.bearings|safe}}
2023-11-08 00:12:21 +00:00
</td>
{% endif %}
2023-03-28 15:37:25 +01:00
{% endfor %}
</table>
2023-11-17 19:26:26 +00:00
<h2>Caves with a specific field set</h2>
<table>
<tr><th>Cave</th>
<th>slug</th>
<th>underground_centre_line</th>
</tr>
{% for c in caves%}
{% if c.kataster_status %}
2023-11-17 19:26:26 +00:00
<tr>
<td>
{{c}}
</td>
<td>
<a href="{{c.url}}">{{c.slug}}</a>
</td>
<td>
{{c.kataster_status |safe}}
2023-11-17 19:26:26 +00:00
</td>
{% endif %}
{% endfor %}
</table>
2023-03-28 15:37:25 +01:00
{% endblock %}