aboutsummaryrefslogtreecommitdiff
path: root/templates/player.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/player.j2')
-rw-r--r--templates/player.j27
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/player.j2 b/templates/player.j2
index 5b70df6..68bea2a 100644
--- a/templates/player.j2
+++ b/templates/player.j2
@@ -1 +1,6 @@
-<button class={% if player.status %} "button is-success" {% else %} "button is-danger" {% endif %} hx-post="{{ "/player-toggle/" ~ player.name}}" hx-trigger="click" hx-swap="outerHTML">{{ player.name }}</button> \ No newline at end of file
+<button class={% if status %} "button is-success" {% else %} "button is-danger" {% endif %}
+ hx-post="{{ "/player-toggle/" ~ id}}"
+ hx-trigger="click"
+ hx-swap="outerHTML">
+ {{ name }}
+</button> \ No newline at end of file