1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-03 08:02:48 +02:00

Don't upload videos after the deadline

This commit is contained in:
Yohann D'ANELLO
2020-10-20 14:51:09 +02:00
parent ab315a69ed
commit 9159e7323d
3 changed files with 16 additions and 1 deletions

View File

@ -23,7 +23,9 @@
<dt class="col-sm-2">{% trans "Video link:" %}</dt>
<dd class="col-sm-10"><a href="{{ participation.solution.link|default:"#" }}" target="_blank">
{{ participation.solution.link|default:novideo }}</a>
<button class="btn btn-primary" data-toggle="modal" data-target="#uploadVideoModal">{% trans "Upload" %}</button>
{% if current_phase.phase_number == 1 or participation.solution.link == "" %}
<button class="btn btn-primary" data-toggle="modal" data-target="#uploadVideoModal">{% trans "Upload" %}</button>
{% endif %}
</dd>
</dl>
{% if participation.solution.platform == "youtube" %}