From c58caf5b8b8801ba826b0ff6b241d7f25a333bc8 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 12 Apr 2024 10:29:29 +0200 Subject: Added a more cleaner application --- templates/index.html | 51 --------------------------------------------------- templates/index.j2 | 45 +++++++++++++++++++++++++++++++++++++++++++++ templates/macro.j2 | 3 +++ templates/player.j2 | 1 + templates/players.j2 | 7 +++++++ 5 files changed, 56 insertions(+), 51 deletions(-) delete mode 100644 templates/index.html create mode 100644 templates/index.j2 create mode 100644 templates/macro.j2 create mode 100644 templates/player.j2 create mode 100644 templates/players.j2 (limited to 'templates') diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index db4a991..0000000 --- a/templates/index.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - Match Up! - - -

Match Up!

-
-
- - - - - - - - - - {% for game in game_list %} - - - - - - {% endfor %} - -
Court Team 1 Team 2
{{game.court_number}} {{game.team_1.player_1.get_name()}}
{{game.team_1.player_2.get_name()}}
{{game.team_2.player_1.get_name()}}
{{game.team_2.player_2.get_name()}}
-
-
- - - - - - - - {% for player in player_list %} - - - - {% endfor %} - -
Player
- {{ player.get_name() }} -
-
-
- - \ No newline at end of file diff --git a/templates/index.j2 b/templates/index.j2 new file mode 100644 index 0000000..82c3c80 --- /dev/null +++ b/templates/index.j2 @@ -0,0 +1,45 @@ + + + + + + 🏸Match Up! + + + + + +
+

🏸Match Up!

+

Come play with the Smashing Fellows!

+
+
+
+

Players

+
+
+ + + \ No newline at end of file diff --git a/templates/macro.j2 b/templates/macro.j2 new file mode 100644 index 0000000..e0089bc --- /dev/null +++ b/templates/macro.j2 @@ -0,0 +1,3 @@ +{% macro player_button(player) %} + +{%- endmacro %} \ No newline at end of file diff --git a/templates/player.j2 b/templates/player.j2 new file mode 100644 index 0000000..1176d65 --- /dev/null +++ b/templates/player.j2 @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/players.j2 b/templates/players.j2 new file mode 100644 index 0000000..3005fa4 --- /dev/null +++ b/templates/players.j2 @@ -0,0 +1,7 @@ +
+{% for player in players %} +
+ +
+{% endfor %} +
\ No newline at end of file -- cgit v1.3.1