2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-02-18 05:00:13 +00:00
troggle/templates/cave_debug.html

64 lines
1.2 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 21:26:26 +02: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-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 15:34:36 +02:00
<th>Best station </th>
<th>Location</th>
2023-11-17 21:26:26 +02:00
<th>Bearings</th>
2023-03-28 15:37:25 +01:00
</tr>
{% for ent in ents %}
2023-11-08 02:12:21 +02:00
{% if ent.bearings %}
2023-03-28 15:37:25 +01:00
<tr>
2023-11-08 02:12:21 +02: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 02:12:21 +02:00
{{ent.slug}}
2023-03-28 15:37:25 +01:00
</td>
<td>
2023-10-07 02:24:41 +03:00
{% if ent.best_station %}{{ent.best_station}}{% endif %}
2023-03-28 15:37:25 +01:00
</td>
<td>
2023-10-07 02:24:41 +03:00
{% if ent.best_station %}{{ent.best_station_object.latlong}}{% endif %}
2023-03-28 15:37:25 +01:00
</td>
2023-11-08 02:12:21 +02:00
<td>
2023-11-08 15:43:19 +02:00
{{ent.bearings|safe}}
2023-11-08 02:12:21 +02:00
</td>
{% endif %}
2023-03-28 15:37:25 +01:00
{% endfor %}
</table>
2023-11-17 21:26:26 +02: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.underground_centre_line %}
<tr>
<td>
{{c}}
</td>
<td>
<a href="{{c.url}}">{{c.slug}}</a>
</td>
<td>
{{c.underground_centre_line|safe}}
</td>
{% endif %}
{% endfor %}
</table>
2023-03-28 15:37:25 +01:00
{% endblock %}