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>
|
|
|
|
<th>Coordinates</th>
|
|
|
|
{% 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-01-14 01:27:48 +00:00
|
|
|
<td>{{ loc.location }}</td>
|
|
|
|
{% if show_owner %}
|
2019-02-02 15:11:26 +00:00
|
|
|
<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>
|
2019-01-14 01:27:48 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('#loc_table').DataTable();
|
|
|
|
});
|
|
|
|
</script>
|