From 47aaf76a572a53a0cc9c2042b43d659db6cc7216 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 15 Nov 2025 01:37:14 +0100 Subject: [PATCH] modified: app.py modified: templates/playerselect.html --- app.py | 6 +----- templates/playerselect.html | 42 ++++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/app.py b/app.py index 971f31a..7fc3ba0 100644 --- a/app.py +++ b/app.py @@ -239,11 +239,7 @@ def playerselect(playlist_id): buzzer = request.args.get('buzzer', '0') user = session.get('user') - # Wenn Buzzer-Modus, redirect zu Einstellungen - if buzzer == '1': - return redirect(url_for('buzzer_settings', playlist_id=playlist_id, mode=game_mode)) - - return render_template('playerselect.html', playlist_id=playlist_id, game_mode=game_mode, translations=get_translations(), user=user) + return render_template('playerselect.html', playlist_id=playlist_id, game_mode=game_mode, buzzer=buzzer, translations=get_translations(), user=user) @app.route('/buzzer_settings/') def buzzer_settings(playlist_id): diff --git a/templates/playerselect.html b/templates/playerselect.html index 1e22ce6..f3d87e8 100644 --- a/templates/playerselect.html +++ b/templates/playerselect.html @@ -60,23 +60,31 @@

{{ translations['quiz_title'] }} – Player Selection

-
- - {% if request.args.get('buzzer') == '1' %} - - {% endif %} - -
{{ translations['singleplayer_desc'] if translations['singleplayer_desc'] else 'Play alone and test your knowledge.' }}
-
-
- - - {% if request.args.get('buzzer') == '1' %} - - {% endif %} - -
Spiele mit bis zu 4 Personen an einem Gerät.
-
+ {% if buzzer == '1' %} +
+ + +
{{ translations['singleplayer_desc'] if translations['singleplayer_desc'] else 'Play alone and test your knowledge.' }}
+
+
+ + + +
Spiele mit bis zu 4 Personen an einem Gerät.
+
+ {% else %} +
+ + +
{{ translations['singleplayer_desc'] if translations['singleplayer_desc'] else 'Play alone and test your knowledge.' }}
+
+
+ + + +
Spiele mit bis zu 4 Personen an einem Gerät.
+
+ {% endif %}
Coming soon!