summaryrefslogtreecommitdiff
path: root/templates/macros.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-10-17 09:05:57 +0000
committerKaran Jayachandra <mail@karanjayachandra.com>2024-10-17 09:05:57 +0000
commit5c3689a711e18cfc3b6a4c699af688753179e007 (patch)
tree2dc84648312607378ec5ef7d087c578907bb8dc5 /templates/macros.j2
parent7643486d7122b322a052bfca8ec83326c48053d0 (diff)
parent299d89197fa4edad742b0ca1838a7b98242b13ce (diff)
Merge branch 'develop' into 'main'
Full functionality and documentation for first version See merge request KaranJayachandra/match_up!5
Diffstat (limited to 'templates/macros.j2')
-rw-r--r--templates/macros.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/macros.j2 b/templates/macros.j2
index 7117d11..65d886f 100644
--- a/templates/macros.j2
+++ b/templates/macros.j2
@@ -1,7 +1,7 @@
{% macro court(id, status) -%}
<button class= "button is-large is-responsive {% if status %}is-success{% else %}is-danger{% endif %}"
hx-post="{{ "/court-toggle/" ~ id}}"
- hx-swap="outerHTML">{{ id }}</button>
+ hx-swap="outerHTML"> Court {{ id }}</button>
{%- endmacro %}
{% macro player(id, status, name) -%}
@@ -18,6 +18,6 @@
{% macro timer(mins, secs) -%}
<div hx-get="/time" hx-swap="outerHTML" hx-trigger="every 1s">
- <p class="title">Timer: {{mins}}:{{secs}}</p>
+ <p class="title">⏲️ {{mins}}:{{secs}}</p>
</div>
{%- endmacro %} \ No newline at end of file