Geoffrey-Django/templates/GeoffreyApp/player_table.html

21 lines
524 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><a class="" href="{{ player.link }}">{{ player }}</a></td>
<td>{{ player.loc_count }} </td>
</tr>
{% endfor %}
</tbody>
</table>
<script>
$(document).ready(function () {
$('#player_table').DataTable();
});
</script>