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

{{ passage }}

{% trans "Pool:" %}
{{ passage.pool }}
{% trans "Position:" %}
{{ passage.position }}
{% trans "Defender:" %}
{{ passage.defender.team }}
{% trans "Opponent:" %}
{{ passage.opponent.team }}
{% trans "Reporter:" %}
{{ passage.reporter.team }}
{% if passage.observer %}
{% trans "Observer:" %}
{{ passage.observer.team }}
{% endif %}
{% trans "Defended solution:" %}
{{ passage.defended_solution }}
{% trans "Defender penalties count:" %}
{{ passage.defender_penalties }}
{% trans "Syntheses:" %}
{% for synthesis in passage.syntheses.all %} {{ synthesis }}{% if not forloop.last %}, {% endif %} {% empty %} {% trans "No synthesis was uploaded yet." %} {% endfor %}
{% if notes is not None %} {% elif user.registration.participates %} {% endif %}
{% if notes %}

{% trans "Notes detail" %}

{% render_table notes %}
{% trans "Average points for the defender writing:" %}
{{ passage.average_defender_writing|floatformat }}/20
{% trans "Average points for the defender oral:" %}
{{ passage.average_defender_oral|floatformat }}/16
{% trans "Average points for the opponent writing:" %}
{{ passage.average_opponent_writing|floatformat }}/9
{% trans "Average points for the opponent oral:" %}
{{ passage.average_opponent_oral|floatformat }}/10
{% trans "Average points for the reporter writing:" %}
{{ passage.average_reporter_writing|floatformat }}/9
{% trans "Average points for the reporter oral:" %}
{{ passage.average_reporter_oral|floatformat }}/10
{% if passage.observer %}
{% trans "Average points for the observer oral:" %}
{{ passage.average_observer|floatformat }}/4
{% endif %}

{% trans "Defender points:" %}
{{ passage.average_defender|floatformat }}/52
{% trans "Opponent points:" %}
{{ passage.average_opponent|floatformat }}/29
{% trans "Reporter points:" %}
{{ passage.average_reporter|floatformat }}/19
{% if passage.observer %}
{% trans "Observer points:" %}
{{ passage.average_observer|floatformat }}/4
{% endif %}
{% endif %} {% if notes is not None %} {% trans "Update passage" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:passage_update" pk=passage.pk as modal_action %} {% include "base_modal.html" with modal_id="updatePassage" %} {% if my_note is not None %} {% trans "Update notes" as modal_title %} {% trans "Update" as modal_button %} {% url "participation:update_notes" pk=my_note.pk as modal_action %} {% include "base_modal.html" with modal_id="updateNotes" %} {% endif %} {% elif user.registration.participates %} {% trans "Upload synthesis" as modal_title %} {% trans "Upload" as modal_button %} {% url "participation:upload_synthesis" pk=passage.pk as modal_action %} {% include "base_modal.html" with modal_id="uploadSynthesis" modal_enctype="multipart/form-data" %} {% endif %} {% endblock %} {% block extrajavascript %} {% endblock %}