|
|
|
@ -39,8 +39,10 @@
@@ -39,8 +39,10 @@
|
|
|
|
|
<td>{{ player.accepted_caught_players() | list | length }}</td> |
|
|
|
|
<td>{{ player.accepted_caught_by_players() | list | length }}</td> |
|
|
|
|
<td>{% with location = player.last_location() %} |
|
|
|
|
{% if location %}{{ moment(location.timestamp).fromNow()}}: {% endif %} |
|
|
|
|
{{ location }} |
|
|
|
|
{% if location %}{{ moment(location.timestamp).fromNow()}} |
|
|
|
|
{% else %} |
|
|
|
|
{{ location }} |
|
|
|
|
{% endif %} |
|
|
|
|
{% endwith %}</td> |
|
|
|
|
<td><a href="{{ url_for('main.remove_player', game_name=game.name, username=player.user.name) }}"> |
|
|
|
|
<button class="btn btn-danger">Delete</button></a> |
|
|
|
@ -99,7 +101,7 @@
@@ -99,7 +101,7 @@
|
|
|
|
|
for (var i = 0; i < objectives.length; i++){ |
|
|
|
|
addObjectiveMarker(map, objectives[i]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var players = JSON.parse('{{ json.dumps(game.last_player_locations(), cls=location_encoder)|safe }}') |
|
|
|
|
for (var i = 0; i < players.length; i++){ |
|
|
|
|
addPlayerMarker(map, players[i]) |
|
|
|
@ -117,4 +119,4 @@
@@ -117,4 +119,4 @@
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
{% endblock %} |
|
|
|
|
{% endblock %} |
|
|
|
|