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

82 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block title %}DEBUG page
<!-- cave_debug.html - this text visible because this template has been included -->
{% endblock %}
{% block content %}
<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.
<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>
<table>
<tr><th>entrance</th>
<th>ent slug</th>
<th>Best station </th>
<th>Location</th>
<th>Bearings</th>
</tr>
{% for ent in ents %}
{% if ent.bearings %}
<tr>
<td>
#{{ent.id}} {{ent}}
</td>
<td>
{{ent.slug}}
</td>
<td>
{% if ent.best_station %}{{ent.best_station}}{% endif %}
</td>
<td>
{% if ent.best_station %}{{ent.best_station_object.latlong}}{% endif %}
</td>
<td>
{{ent.bearings|safe}}
</td>
{% endif %}
{% endfor %}
</table>
<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 %}
<tr>
<td>
{{c}}
</td>
<td>
<a href="{{c.url}}">{{c.slug}}</a>
</td>
<td>
{{c.kataster_status |safe}}
</td>
{% endif %}
{% endfor %}
</table>
{% endblock %}