régler problème avec mise a jour des status de message du discord bot

This commit is contained in:
cedrick2711
2026-08-06 15:26:00 -04:00
parent fcf10bcdff
commit f89e4deb30
3 changed files with 48 additions and 0 deletions
+14
View File
@@ -374,6 +374,20 @@
{% endfor %}
</div>
{% endif %}
<!-- Player self-presence toggle -->
{% if not can_edit and item.player_presence %}
{% for pp in item.player_presence %}
{% if pp.player_id == current_user.id %}
<div class="presence-players" style="margin-top:6px;">
<button class="btn btn-xs presence-toggle-btn {% if pp.attendance_confirmed %}presence-confirmed-btn{% else %}presence-pending-btn{% endif %}"
title="Toggle your attendance"
onclick="toggleTryoutPresence({{ m.id }}, {{ pp.participant_id }}, this)">
Me {% if pp.attendance_confirmed %}✅{% else %}⏳{% endif %}
</button>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% else %}
<span class="text-muted"></span>
{% endif %}