{% extends "admin/base.html" %} {% block page_title %}🏆 مدیریت مسابقات{% endblock %} {% block content %}
➕ ساخت مسابقه جدید
{% for m in matches %} {% else %} {% endfor %}
#{{ t('match_title') }}{{ t('match_game') }}{{ t('match_mode') }} {{ t('match_start') }}{{ t('match_entry_fee') }} {{ t('capacity') }} {{ t('match_status') }}کد/رمز🏆 {{ t('winners')|default('Winners') }}{{ t('action') }}
{{ m.id }} {{ m.title }} {{ m.game.icon }} {{ m.game.name }} {{ m.mode.name if m.mode else '—' }} {{ m.starts_at.strftime('%Y-%m-%d %H:%M') }} {{ m.entry_fee }} {{ m.current_players }} : {{ m.capacity }} {{ m.status }} {% if m.credentials_published %} {{ m.room_code }} / {{ m.room_password }} {% else %} {% endif %} {% set wids = (m.winner_participant_ids | fromjson) if m.winner_participant_ids else [] %} {% set winners = m.participants.all() | selectattr('id', 'in', wids) | list %} {% if winners %} {% for p in winners[:3] %} {{ p.user.display_name[0]|upper if p.user else '?' }} {% endfor %} {% if winners|length > 3 %}+{{ winners|length - 3 }}{% endif %} {% else %} {% endif %}
✏️ 🏆 {% if m.status != 'cancelled' %} 🚫 {% endif %} 🗑️
{{ t('no_data') }}
{% endblock %} {% block scripts %} {% endblock %}