summaryrefslogtreecommitdiff
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, 1 insertions, 6 deletions
diff --git a/templates/player.j2 b/templates/player.j2
index 7e80285..68a1ea4 100644
--- a/templates/player.j2
+++ b/templates/player.j2
@@ -1,6 +1 @@
-<button class="button is-medium is-responsive {% if status %} is-success {% else %} is-danger {% endif %}"
- hx-post="{{ "/player-toggle/" ~ id}}"
- hx-trigger="click"
- hx-swap="outerHTML">
- {{ name }}
-</button> \ No newline at end of file
+{% from "macros.j2" import player %}{{ player(id, status, name) }} \ No newline at end of file