summaryrefslogtreecommitdiff
path: root/templates/player.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 21:47:26 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 21:47:26 +0200
commit74480cbe2b335fd141cdf5f07bb08808c0d08692 (patch)
treeca9f5c55579acfd8394469e2644dc41dfd625988 /templates/player.j2
parent83cb89862c7c330552c48d9b25f898388693c420 (diff)
Added all macros and also stored the js, css, png and ico files
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