aboutsummaryrefslogtreecommitdiff
path: root/templates/macros.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-10-17 09:05:12 +0000
committerKaran Jayachandra <mail@karanjayachandra.com>2024-10-17 09:05:12 +0000
commit299d89197fa4edad742b0ca1838a7b98242b13ce (patch)
tree2dc84648312607378ec5ef7d087c578907bb8dc5 /templates/macros.j2
parent36cc7d82a55cbd8167e1f52637dd1938497dd8cc (diff)
parent02f7ee71560ade362afd415d0664d9243fe017a5 (diff)
Merge branch 'feature/docs' into 'develop'
Added a starting point for all documentation See merge request KaranJayachandra/match_up!4
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