blob: 550ad68accf21cf4ca613ca81966c7fbc3e4d8b4 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
<div class="fixed-grid has-5-cols">
<div class="grid">
{% for id, player in players.items() %}
<div class="cell">
<button class={% if player.status %} "button is-success is-large" {% else %} "button is-danger is-large" {% endif %} hx-post="{{ "/player-toggle/" ~ id}}" hx-trigger="click" hx-swap="outerHTML">{{ player.name }}</button>
</div>
{% endfor %}
</div>
|