35 lines
990 B
HTML
35 lines
990 B
HTML
<h2>Locations</h2>
|
|
<table id="loc_table" class="table table-hover link-table">
|
|
<thead class="bg-dark">
|
|
<tr>
|
|
<th>Location Name</th>
|
|
<th>Coordinates</th>
|
|
{% if show_owner %}
|
|
<th>Owner</th>
|
|
{% endif %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for loc in loc_list %}
|
|
<tr>
|
|
<td><a href="{{ loc.link }}">{{ loc.name }}</a></td>
|
|
<td>{{ loc.location }}</td>
|
|
{% if show_owner %}
|
|
<td>
|
|
{% include "GeoffreyApp/player_link.html" with player=loc.owner.first %}
|
|
{% for owner in loc.owner.all|slice:"1:3" %},
|
|
{% include "GeoffreyApp/player_link.html" with player=owner %}
|
|
{% endfor %}
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#loc_table').DataTable();
|
|
});
|
|
</script> |