summaryrefslogtreecommitdiff
path: root/templates/macros.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 23:57:24 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 23:57:24 +0200
commita355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc (patch)
treea1d9ae0e6dd81238a0e3cb142b13cb8d68d3699b /templates/macros.j2
parent36cc7d82a55cbd8167e1f52637dd1938497dd8cc (diff)
Cleaned up the layout a bit
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