diff --git a/app/templates/base.html b/app/templates/base.html index 3f08298..5452e2d 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -11,52 +11,56 @@ {% block navbar %} {% endblock %} {% block content %}
- {% with messages = get_flashed_messages() %} - {% if messages %} - {% for message in messages %} - - {% endfor %} - {% endif %} - {% endwith %} + {% with messages = get_flashed_messages() %} + {% if messages %} + {% for message in messages %} + + {% endfor %} + {% endif %} + {% endwith %} - {# application content needs to be provided in the app_content block #} - {% block app_content %}{% endblock %} + {# application content needs to be provided in the app_content block #} + {% block app_content %}{% endblock %}
{% endblock %} {% block scripts %} - {{ super() }} - {{ moment.include_moment() }} +{{ super() }} +{{ moment.include_moment() }} {% endblock %} \ No newline at end of file diff --git a/app/templates/game_bunny_dashboard.html b/app/templates/game_bunny_dashboard.html index 32a4729..b7b5205 100644 --- a/app/templates/game_bunny_dashboard.html +++ b/app/templates/game_bunny_dashboard.html @@ -60,21 +60,22 @@ {% endblock %} diff --git a/app/templates/game_hunter_dashboard.html b/app/templates/game_hunter_dashboard.html index 9c9e59a..4641f31 100644 --- a/app/templates/game_hunter_dashboard.html +++ b/app/templates/game_hunter_dashboard.html @@ -9,81 +9,91 @@ {% block player_app_content %}
-
+
-
-

Bunnies

-
- - - - - - - - - - - {% set player = current_user.player_in(game) %} - {% for bunny in game.bunnies() %} - - - - - - - {% endfor %} - -
Player NameTimes CaughtLast location
{{ bunny.user.name }}{{ bunny.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'accepted') |list|length}} / - {{ bunny.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'denied') |list|length}} / - {{ bunny.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'none') |list|length}} - {% with location = bunny.last_location(offset=hunter_delay) %} - {% if location %}{{ moment(location.timestamp).fromNow()}} - {% else %} - {{ location }} - {% endif %} - {% endwith %} - - - -
- - (Accepted/Denied/Not reviewed) - +
+

Bunnies

+
+ + + + + + + + + + + {% set player = current_user.player_in(game) %} + {% for bunny in game.bunnies() %} + + + + + + + {% endfor %} + +
Player NameTimes CaughtLast location
{{ bunny.user.name }}{{ bunny.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'accepted') |list|length}} + / + {{ bunny.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'denied') |list|length}} + / + {{ bunny.player_caught_by_players | selectattr('catching_player', '==', player) | selectattr('review.name', '==', 'none') |list|length}} + {% with location = bunny.last_location(offset=hunter_delay) %} + {% if location %}{{ moment(location.timestamp).fromNow()}} + {% else %} + {{ location }} + {% endif %} + {% endwith %} + + + +
+ + (Accepted/Denied/Not + reviewed) + +
+
+
+ {% include '_game_player_info.html' %}
-
-
- {% include '_game_player_info.html' %} -
-
-
-
+
+
+
{% endblock %} {% block scripts %} {{ super() }} - -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/app/templates/game_owner_dashboard.html b/app/templates/game_owner_dashboard.html index f12b2cc..3fb9212 100644 --- a/app/templates/game_owner_dashboard.html +++ b/app/templates/game_owner_dashboard.html @@ -101,21 +101,23 @@