From 0e9afc780c5fe22862bacf5c72096c8ab0340b5c Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 31 Oct 2020 13:55:29 +0100 Subject: [PATCH] Display the received video --- .../participation/participation_detail.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/participation/templates/participation/participation_detail.html b/apps/participation/templates/participation/participation_detail.html index 878292b..a584bbe 100644 --- a/apps/participation/templates/participation/participation_detail.html +++ b/apps/participation/templates/participation/participation_detail.html @@ -21,7 +21,7 @@
{% trans "No video sent" as novideo %}
{% trans "Proposed solution:" %}
-
+
{{ participation.solution.link|default:novideo }} {% if current_phase.phase_number == 1 or participation.solution.link == "" %} @@ -94,6 +94,14 @@
{% endif %} + +
{% trans "Proposed solution:" %}
+
+ {{ participation.received_participation.solution.link|default:novideo }} + {% if participation.received_participation.solution.link %} + + {% endif %} +
{# TODO Display solution #} @@ -139,6 +147,15 @@ {% 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 %} + + +{% if user.registration.is_admin or current_phase.phase_number >= 2 %} + {% if participation.received_participation.solution.link %} + {% 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.received_participation.solution.as_iframe|default:unsupported_platform %} + {% endif %} +{% endif %} {% endblock %} {% block extrajavascript %}