From 587ba23a5dc7ffc91b1701c335bc881abd45675d Mon Sep 17 00:00:00 2001 From: Burathar Date: Fri, 11 Feb 2022 23:47:05 +0100 Subject: [PATCH] Customize gamemode --- app/templates/game_bunny_dashboard.html | 35 ------------------- app/templates/game_player.html | 45 +++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 35 deletions(-) diff --git a/app/templates/game_bunny_dashboard.html b/app/templates/game_bunny_dashboard.html index 212349b..0d8b8b2 100644 --- a/app/templates/game_bunny_dashboard.html +++ b/app/templates/game_bunny_dashboard.html @@ -19,8 +19,6 @@ Objective Name - Latitude - Longitude Found @@ -28,8 +26,6 @@ {% for objective in game.objectives %} {{ objective.name }} - {{ objective.latitude }} - {{ objective.longitude }} {{ 'Yes' if objective in current_user.player_in(game).found_objectives else 'No' }} {% endfor %} @@ -44,39 +40,8 @@ -{% if game.objectives %} -
-
-
-
-
-{% endif %} - {% endblock %} {% block scripts %} {{ super() }} - - {% endblock %} diff --git a/app/templates/game_player.html b/app/templates/game_player.html index 2234642..36060d1 100644 --- a/app/templates/game_player.html +++ b/app/templates/game_player.html @@ -68,6 +68,51 @@ {% endif %} + +{% if player.found_objectives %} + +
+

Found Objectives:

+
+ + + + + + + + + + {% for pfo in player.found_objectives %} + + + + + + {% endfor %} + +
Objective nameTimeCoordiates
{{ pfo.objective.name }}{{ moment(pfo.timestamp).fromNow() }}{{ pfo.objective.latitude }}, {{ pfo.objective.longitude }}
+
+
+
+ + + + + + + + + {% for objective in game.objectives %} + + + + + {% endfor %} + +
Objective NameFound
{{ objective.name }}{{ 'Yes' if objective in current_user.player_in(game).found_objectives else 'No' }}
+
+{% endif %} {% endblock %}