diff --git a/templates/main.html b/templates/main.html index a365ddb..31757e4 100644 --- a/templates/main.html +++ b/templates/main.html @@ -2,6 +2,9 @@ {% block title %}Wer bin ich{% endblock %} + {% block content %}{% endblock %} diff --git a/templates/name_edit.html b/templates/name_edit.html index 8621f4b..fc9407f 100644 --- a/templates/name_edit.html +++ b/templates/name_edit.html @@ -3,15 +3,18 @@ {% block content %}

Choose a name

-

You are: {{ current_player }}

+ +
You are: {{ current_player }}

Please name your player:

+ {% for player in other_players %} -{{ player }}:
+ {% endfor %} +
{{ player }}

diff --git a/templates/name_show.html b/templates/name_show.html index 2ed4725..8b99796 100644 --- a/templates/name_show.html +++ b/templates/name_show.html @@ -3,7 +3,7 @@ {% block content %}

Play!

-

You are: {{ current_player }}

+
You are: {{ current_player }}

@@ -13,4 +13,8 @@

+

+Edit name New game +

+ {% endblock %} diff --git a/templates/player_select.html b/templates/player_select.html index 79fd64d..a8eff50 100644 --- a/templates/player_select.html +++ b/templates/player_select.html @@ -7,9 +7,11 @@

Please select your player:
+

diff --git a/werbinich.py b/werbinich.py index d6e0d0c..c1b470b 100644 --- a/werbinich.py +++ b/werbinich.py @@ -46,8 +46,7 @@ def store_name(gameid, player): def name_show(gameid, player): other_players = dict(games[str(gameid)]) other_players.pop(player,None) - pprint(other_players) - return render_template("name_show.html", current_player=player, other_players=other_players) + return render_template("name_show.html", current_player=player, other_players=other_players, edit_url=url_for("name_edit", gameid=gameid, player=player)) @app.errorhandler(KeyError) def not_found(error):