summaryrefslogtreecommitdiff
path: root/templates/players.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/players.j2')
-rw-r--r--templates/players.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/players.j2 b/templates/players.j2
new file mode 100644
index 0000000..6179dbb
--- /dev/null
+++ b/templates/players.j2
@@ -0,0 +1,8 @@
+<div class="fixed-grid has-5-cols">
+<div class="grid">
+{% for player in players %}
+ <div class="cell">
+ <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>
+ </div>
+{% endfor %}
+</div> \ No newline at end of file