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