|
|
|
@ -7,7 +7,7 @@
@@ -7,7 +7,7 @@
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
|
{% block app_content %} |
|
|
|
|
<h1>{{ game.name }} Dashboard</h1> |
|
|
|
|
<h1>{{ game.name }}: {{ current_user.name }}</h1> |
|
|
|
|
{% include '_game_player_info.html' %} |
|
|
|
|
<h2>Bunnies:</h2> |
|
|
|
|
<div class="table-responsive"> |
|
|
|
@ -23,7 +23,7 @@
@@ -23,7 +23,7 @@
|
|
|
|
|
{% for player in game.bunnies() %} |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ player.name }}</td> |
|
|
|
|
<td>{{ player.caught_by_players | selectattr('game', '==', game)|list|length}}</td> |
|
|
|
|
<td>{{ player.caught_by_players | selectattr('game', '==', game) | selectattr('catching_player', '==', current_user) |list|length}}</td> |
|
|
|
|
<td>{% with location = player.last_location(game) %} |
|
|
|
|
{% if location %}{{ moment(location.timestamp).fromNow()}}: {% endif %} |
|
|
|
|
{{ location }} |
|
|
|
@ -52,7 +52,7 @@
@@ -52,7 +52,7 @@
|
|
|
|
|
L.control.scale().addTo(map); |
|
|
|
|
|
|
|
|
|
L.tileLayer( 'https://geodata.nationaalgeoregister.nl/tiles/service/wmts/brtachtergrondkaartpastel/EPSG:3857/{z}/{x}/{y}.png', { |
|
|
|
|
attribution: 'Kaartgegevens © <a href="kadaster.nl">Kadaster</a>' |
|
|
|
|
attribution: 'Kaartgegevens © <a href="https://kadaster.nl">Kadaster</a>' |
|
|
|
|
}).addTo( map ); |
|
|
|
|
|
|
|
|
|
var greenIcon = new L.Icon({ |
|
|
|
|