From 63e1b52e1b76e136e6534949980d85ffe413f0c9 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 25 Jul 2025 16:06:20 +0200 Subject: Working mobile and desktop version --- app/templates/controls.j2 | 12 ++++++------ app/templates/games.j2 | 2 +- app/templates/index.j2 | 4 ++-- app/templates/macros.j2 | 4 ++-- app/templates/players.j2 | 14 ++------------ 5 files changed, 13 insertions(+), 23 deletions(-) (limited to 'app/templates') diff --git a/app/templates/controls.j2 b/app/templates/controls.j2 index 14e7520..8e7440e 100644 --- a/app/templates/controls.j2 +++ b/app/templates/controls.j2 @@ -1,10 +1,4 @@ {% from "macros.j2" import court_button %} -

Courts

-
-{% for court in courts %} - {{ court_button(court) }} -{% endfor %} -

Generation

@@ -47,4 +41,10 @@
+
+

Courts

+
+{% for court in courts %} + {{ court_button(court) }} +{% endfor %}
\ No newline at end of file diff --git a/app/templates/games.j2 b/app/templates/games.j2 index ce2a412..5041ce1 100644 --- a/app/templates/games.j2 +++ b/app/templates/games.j2 @@ -10,7 +10,7 @@ {% for game in games %} - + {{ game.court.id }} {{ game.team_1[0].first_name }}{{ " " + game.team_1[0].last_name }} {{ game.team_1[1].first_name }}{{ " " + game.team_1[1].last_name }} diff --git a/app/templates/index.j2 b/app/templates/index.j2 index 8a13fa0..af6ca4c 100644 --- a/app/templates/index.j2 +++ b/app/templates/index.j2 @@ -3,7 +3,7 @@ {{ header(url_for) }} -
{{ navbar(url_for) }}
+
{{ navbar(url_for, login_status) }}

Games

@@ -11,6 +11,6 @@
{{ footer() }}
- + diff --git a/app/templates/macros.j2 b/app/templates/macros.j2 index 17a2940..e82b910 100644 --- a/app/templates/macros.j2 +++ b/app/templates/macros.j2 @@ -31,7 +31,7 @@ {%- endmacro %} -{% macro navbar(url_for) -%} +{% macro navbar(url_for, login_status) -%} {%- endmacro %} \ No newline at end of file diff --git a/app/templates/players.j2 b/app/templates/players.j2 index 4b9660e..bacb215 100644 --- a/app/templates/players.j2 +++ b/app/templates/players.j2 @@ -3,7 +3,7 @@ {{ header(url_for) }} -
{{ navbar(url_for) }}
+
{{ navbar(url_for, login_status) }}

Members

@@ -34,17 +34,7 @@
{{ footer() }}
- +
\ No newline at end of file -- cgit v1.3.1