2019-01-14 01:27:48 +00:00
|
|
|
<table id="loc_table" class="table table-hover link-table">
|
|
|
|
<thead class="bg-dark">
|
|
|
|
<tr>
|
|
|
|
<th>Location Name</th>
|
2019-04-13 01:04:13 +00:00
|
|
|
<th>Position</th>
|
|
|
|
<th>Tunnel</th>
|
2019-01-14 01:27:48 +00:00
|
|
|
{% if show_owner %}
|
|
|
|
<th>Owner</th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for loc in loc_list %}
|
|
|
|
<tr>
|
2019-02-06 20:54:50 +00:00
|
|
|
<td><a href="{{ loc.link }}">{{ loc.name }}</a></td>
|
2019-04-13 01:04:13 +00:00
|
|
|
<td>{{ loc.position }}</td>
|
|
|
|
<td>{% if loc.tunnel %} {{ loc.tunnel.tunnel_str }}{% else %}n/a{% endif %}</td>
|
2019-01-14 01:27:48 +00:00
|
|
|
{% if show_owner %}
|
2019-02-02 15:11:26 +00:00
|
|
|
<td>
|
2019-04-13 01:04:13 +00:00
|
|
|
<a href="{{ loc.owner.first.link }}">{{ loc.owner.first }}</a>
|
2019-02-02 15:11:26 +00:00
|
|
|
{% for owner in loc.owner.all|slice:"1:3" %},
|
2019-04-13 01:04:13 +00:00
|
|
|
<a href="{{ owner.link }}">{{ owner }}</a>
|
2019-02-02 15:11:26 +00:00
|
|
|
{% endfor %}
|
|
|
|
</td>
|
2019-01-14 01:27:48 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('#loc_table').DataTable();
|
|
|
|
});
|
|
|
|
</script>
|