{% load debate_tags static i18n %} {% regroup statistics.motions by round as motions_by_round %} {% for round, motions in motions_by_round %}
{{ round.name }}
{% for r_motion in motions %} {% with motion=r_motion.motion %}

{{ motion.text }} ({{ motion.reference }}) {% if motion.nrounds > 1 %} {% for m_round in motion.rounds.all %} {{ m_round.abbreviation }} {% endfor %} {% endif %}

{% if motion.info_slide %} {% trans "View Info Slide" %} {% include 'motions_info.html' %} {% endif %}
{% if pref.teams_in_debate == 2 %} {% include "motion_statistics_twoteam.html" with motion=r_motion %} {% elif pref.teams_in_debate == 4 and round.stage == round.Stage.ELIMINATION %} {% include "motion_statistics_bp_elim.html" with motion=r_motion %} {% elif pref.teams_in_debate == 4 and round.stage == round.Stage.PRELIMINARY %} {% include "motion_statistics_bp_prelim.html" with motion=r_motion %} {% endif %}
{% endwith %} {% endfor %}
{% endfor %}