Geoffrey-Django/templates/GeoffreyApp/player_table.html

21 lines
515 B
HTML

<table id="player_table" class="table table-hover link-table">
<thead class="bg-dark">
<tr>
<th>Player Username</th>
<th># of Locations</th>
</tr>
</thead>
<tbody>
{% for player in player_list %}
<tr>
<td>{% include "GeoffreyApp/player_link.html" %}</td>
<td>{{ player.loc_count }} </td>
</tr>
{% endfor %}
</tbody>
</table>
<script>
$(document).ready(function () {
$('#player_table').DataTable();
});
</script>