34 lines
971 B
HTML
34 lines
971 B
HTML
<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> |