|
|
|
@ -24,16 +24,16 @@
@@ -24,16 +24,16 @@
|
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
{% for player in game.bunnies() %} |
|
|
|
|
{% for bunny in game.bunnies() %} |
|
|
|
|
<tr> |
|
|
|
|
<td>{{ player.user.name }}</td> |
|
|
|
|
<td>{{ player.caught_by_players | selectattr('catching_player', '==', current_user.player_in(game)) |list|length}}</td> |
|
|
|
|
<td>{% with location = player.user.last_location(game) %} |
|
|
|
|
<td>{{ bunny.user.name }}</td> |
|
|
|
|
<td>{{ bunny.player_caught_by_players | selectattr('catching_player', '==', current_user.player_in(game)) |list|length}}</td> |
|
|
|
|
<td>{% with location = bunny.user.last_location(game) %} |
|
|
|
|
{% if location %}{{ moment(location.timestamp).fromNow()}}: {% endif %} |
|
|
|
|
{{ location }} |
|
|
|
|
{% endwith %}</td> |
|
|
|
|
<td> |
|
|
|
|
<a href="{{ url_for('main.catch_bunny', game_name=game.name, bunny_name=player.name) }}"> |
|
|
|
|
<a href="{{ url_for('main.catch_bunny', game_name=game.name, bunny_name=bunny.name) }}"> |
|
|
|
|
<button class="btn btn-success">Catch</button> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|