2019-01-11 22:40:12 +00:00
|
|
|
{% extends "GeoffreyApp/base.html" %}
|
|
|
|
|
2019-01-12 21:06:06 +00:00
|
|
|
{% block header %}
|
|
|
|
Search results for {{ search }}...
|
|
|
|
{% endblock %}
|
|
|
|
|
2019-01-11 22:40:12 +00:00
|
|
|
{% block content %}
|
2019-01-12 21:06:06 +00:00
|
|
|
<h2>Players</h2>
|
|
|
|
<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>{{ player.name }} </td>
|
|
|
|
<td>{{ player.loc_count }} </td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<hr class="my-4">
|
2019-01-11 22:40:12 +00:00
|
|
|
|
2019-01-12 21:06:06 +00:00
|
|
|
<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>
|
|
|
|
<th>Owner</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for loc in loc_list %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ loc.name }} </td>
|
|
|
|
<td>{{ loc.location }}</td>
|
|
|
|
<td>{{ loc.owner }} </td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2019-01-11 22:40:12 +00:00
|
|
|
|
2019-01-12 21:06:06 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-01-11 22:40:12 +00:00
|
|
|
|
2019-01-12 21:06:06 +00:00
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$('#player_table').DataTable();
|
|
|
|
$('#loc_table').DataTable();
|
|
|
|
});
|
|
|
|
</script>
|
2019-01-11 22:40:12 +00:00
|
|
|
|
|
|
|
{% endblock %}
|