{% if tournament %}
🎯 Shooting Tournament
{{ tournament.total_players }} players • {{ tournament.total_rounds }} rounds {% if tournament.current_round %} • Currently on Round {{ tournament.current_round }} {% endif %}
{% for round in tournament.rounds %} {% set is_current = tournament.current_round == round.round_number %} {% set is_completed = tournament.current_round > round.round_number %}
Round {{ round.round_number }}
{% if is_current %}
Current
{% elif is_completed %}
Completed
{% else %}
Waiting
{% endif %}
{% for position in range(1, 7) %} {% set player = round.players[position-1] if position <= round.players|length else none %}
{{ position }}
{% if player %}
{{ player.name }}
ID: {{ player.id }}
{% else %}
Empty
{% endif %}
{% endfor %}
{% endfor %}
📊 Tournament Summary
Total Players: {{ tournament.total_players }}
Total Rounds: {{ tournament.total_rounds }}
Current Round: {{ tournament.current_round or 'Not set' }}
Updates: On Round Change
Created: {{ tournament.created_at[:10] if tournament.created_at else 'Unknown' }}
Status: Active
{% else %}

📋 No Active Tournament

No tournament is currently running. Check the Results tab for completed tournaments or use the dashboard to start a new tournament.

{% endif %}
🆕 New Round Starting...