diff options
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 %} |
