{% load debate_tags participant_link i18n %}
{# Round start time #}
{% if current_round.starts_at %}
{% blocktrans trimmed with start_time=current_round.starts_at|time:'H:i' %}
The round begins at {{ start_time }}
{% endblocktrans %}
{% endif %} {# current_round.starts_at #}
{# Teams (only in BP -- in two-team, it's displayed above) #}
{% if pref.teams_in_debate == 4 %}
{% trans "Teams:" %}
{% for dt in debate.debateteams_ordered %}
{% team_record_link dt.team admin_page %}{% if debate.sides_confirmed %} ({% debate_team_side_name dt %}){% endif %}{% if not forloop.last %},{% endif %}
{% endfor %}
{% endif %} {# pref.teams_in_debate == 4 #}
{# Adjudicators #}
{% if debate.round.draw_status != debate.round.Status.RELEASED and not admin_page %}
{% trans "The adjudicators for this debate have not yet been released." %}
{% elif not pref.no_panellist_position or not pref.no_trainee_position %}
{% if debate.adjudicators|length > 0 %}
{% with adjudicators=debate.adjudicators %}
{% blocktrans trimmed count counter=adjudicators|length %}
Adjudicator:
{% plural %}
Adjudicators:
{% endblocktrans %}
{% for adj, adjtype in adjudicators.with_positions %}
{% if adj != debateadjudicator.adjudicator %}
{% person_display_name adj %}{% if adjtype == adjudicators.POSITION_CHAIR %} {% trans "Ⓒ" context "chair icon" %}{% elif adjtype == adjudicators.POSITION_TRAINEE %} {% trans "Ⓣ" context "trainee icon" %}{% endif %}{% if not forloop.last %},{% endif %}
{% else %}
{% person_display_name adj %}{% if adjtype == adjudicators.POSITION_CHAIR %} {% trans "Ⓒ" context "chair icon" %}{% elif adjtype == adjudicators.POSITION_TRAINEE %} {% trans "Ⓣ" context "trainee icon" %}{% endif %}{% if not forloop.last %},{% endif %}
{% endif %}
{% endfor %}
{% endwith %}
{% else %}
{% trans "There are no panellists or trainees assigned to this debate." %}
{% endif %} {# debate.adjudicators|length > 0 #}
{% endif %} {# (debate.round.draw_status != 'R' and not admin_page) and (not pref.no_panellist_position or not pref.no_trainee_position) #}
{# Motions #}
{% haspermission "view.roundmotion" as motions_perm %}
{% if admin_page and motions_perm or pref.public_motions %}
{% if debate.round.motions_released or admin_page %}
{% if not debate.round.motions_released %}
{% trans "Motions are not released to public." %}
{% endif %}
{% if debate.round.motion_set.all|length == 1 %}
{% with motion=debate.round.motion_set.first %}
{% trans "Motion:" %} {{ motion.text }}
{% if motion.info_slide %}
{% trans "View Info-slide" %}
{% include 'motions_info.html' %}
{% endif %}
{% endwith %}
{% else %}
Motions
{% for rm in debate.round.roundmotion_set.all %}
{{ rm.motion.text }}
{% if rm.motion.info_slide %}
{% trans "View Info-slide" %}
{% include 'motions_info.html' with motion=rm.motion %}
{% endif %}
{% endfor %}
{% endif %}
{% else %} {# elif not (debate.round.motions_released or admin_page) #}
{% trans "The motion(s) for this round haven't yet been released." %}
{% endif %} {# debate.round.motions_released or admin_page #}
{% endif %} {# pref.public_motions or admin_page #}