{% extends "base.html" %}
{% block title %}DEBUG page
<!-- cave_debug.html - this text visible because this template has been included -->
{% endblock %}

{% block content %}

<h2 id="cmult">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 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>


{% endblock %}