{% extends "base.html" %} {% load i18n %} {% block content %} {% trans "any" as any %}

{% trans "Participation of team" %} {{ participation.team.name }} ({{ participation.team.trigram }})

{% trans "Team:" %}
{{ participation.team }}
{% trans "Chosen problem:" %}
{{ participation.get_problem_display }}
{% trans "No video sent" as novideo %}
{% trans "Proposed solution:" %}
{{ participation.solution.link|default:novideo }} {% if current_phase.phase_number == 1 or participation.solution.link == "" %} {% endif %} {% if participation.solution.link %} {% endif %}
{% if user.registration.is_admin or current_phase >= 2 %}

{% trans "Sent solution" %}

{% trans "Team that received your solution:" %}
{{ participation.sent_participation.team|default:any }}
{% if user.registration.is_admin %}
{% endif %}
{% if current_phase.phase_number == 2 %}
{% blocktrans trimmed %} The mentioned team received your video. They are now watching your video, and formulating questions. You would be able to exchange with the other phase during the next phase. {% endblocktrans %}
{% elif current_phase.phase_number == 3 %}
{% blocktrans trimmed with user_id=user.pk %} The other team sent you questions about your solution. Your are now able to answer them, then to exchange freely with the other team. You can click on the Chat button, or to connect to your dedicated Matrix account: @corres2math_{{ user_id }}:correspondances-maths.fr. You can use your own Matrix client, or use the dedicated Element client: element.correpondances-maths.fr {% endblocktrans %}
{% elif current_phase.phase_number == 4 %} {# TODO View synthesis #} {% endif %}

{% trans "Received solution" %}

{% trans "Team that sent you their solution:" %}
{{ participation.received_participation.team|default:any }}
{% if user.registration.is_admin %}
{% endif %}
{# TODO Display solution #} {% if current_phase.phase_number == 2 %} {# TODO Send questions #} {% elif current_phase.phase_number == 3 %}
{% blocktrans trimmed with user_id=user.pk %} You sent your questions to the other team about their solution. When they answer to your questions, you will be able to exchange freely with the other team. You can click on the Chat button, or to connect to your dedicated Matrix account: @corres2math_{{ user_id }}:correspondances-maths.fr. You can use your own Matrix client, or use the dedicated Element client: element.correpondances-maths.fr {% endblocktrans %}
{% elif current_phase.phase_number == 4 %} {# TODO Send synthesis #} {% endif %}
{% endif %} {% if user.registration.is_admin %} {% trans "Define received video" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:participation_receive_participation" pk=participation.pk as modal_action %} {% include "base_modal.html" with modal_id="defineReceivedParticipation" %} {% endif %} {% trans "Upload video" as modal_title %} {% trans "Upload" as modal_button %} {% url "participation:upload_video" pk=participation.solution_id as modal_action %} {% include "base_modal.html" with modal_id="uploadSolution" %} {% trans "Display solution" as modal_title %} {% trans "This video platform is not supported yet." as unsupported_platform %} {% include "base_modal.html" with modal_id="displaySolution" modal_action="" modal_button="" modal_additional_class="modal-lg" modal_content=participation.solution.as_iframe|default:unsupported_platform %} {% endblock %} {% block extrajavascript %} {% endblock %}