diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 19:51:45 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 19:51:45 +0200 |
| commit | 4aee68096c11ce1e3762fb8cffbde2a14dfa3cd0 (patch) | |
| tree | 4ce0642a088fd2370ad0992916d5d41093bedc48 /app/templates/macros.j2 | |
| parent | 0396e1fbb46c7256095f05e37f2747baa3e20c73 (diff) | |
Added the login for changes
Diffstat (limited to 'app/templates/macros.j2')
| -rw-r--r-- | app/templates/macros.j2 | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/app/templates/macros.j2 b/app/templates/macros.j2 index a4b2fc1..e8030e7 100644 --- a/app/templates/macros.j2 +++ b/app/templates/macros.j2 @@ -1,7 +1,7 @@ -{% macro court_button(id, status) -%} -<button class= "button is-responsive {% if status %}is-success{% else %}is-danger{% endif %}" - hx-post="{{ "/court-toggle/" ~ id}}" - hx-swap="outerHTML"> Court {{ id }}</button> +{% macro court_button(court) -%} +<button class= "button is-responsive {% if court.status %}is-success{% else %}is-danger{% endif %}" + hx-post="{{ "/court-toggle/" ~ court.id}}" + hx-swap="outerHTML"> Court {{ court.id }}</button> {%- endmacro %} {% macro player_button(player) -%} @@ -34,17 +34,17 @@ {% macro header(url_for) -%} <head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>Match Up!</title> - <link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}"> - <link rel="stylesheet" href="{{ url_for('static', filename='bulma.min.css') }}"> - <link rel="stylesheet" href="{{ url_for('static', filename='notyf.min.css') }}"> - <link rel="stylesheet" href="{{ url_for('static', filename='custom.css') }}"> - <script src="{{ url_for('static', filename='htmx.min.js') }}"></script> - <script src="{{ url_for('static', filename='notyf.min.js') }}"></script> - <script src="{{ url_for('static', filename='fontawesome.js') }}"></script> - <script defer src="{{ url_for('static', filename='custom.js') }}"></script> +<meta charset="UTF-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<title>Match Up!</title> +<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}"> +<link rel="stylesheet" href="{{ url_for('static', filename='bulma.min.css') }}"> +<link rel="stylesheet" href="{{ url_for('static', filename='notyf.min.css') }}"> +<link rel="stylesheet" href="{{ url_for('static', filename='custom.css') }}"> +<script src="{{ url_for('static', filename='htmx.min.js') }}"></script> +<script src="{{ url_for('static', filename='notyf.min.js') }}"></script> +<script src="{{ url_for('static', filename='fontawesome.js') }}"></script> +<script defer src="{{ url_for('static', filename='custom.js') }}"></script> </head> {%- endmacro %} |
