mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-02-11 10:21:17 +00:00
Better participation page
This commit is contained in:
parent
b2f2dfde5f
commit
ed88c7cf6f
@ -4,43 +4,35 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% trans "any" as any %}
|
{% trans "any" as any %}
|
||||||
<div class="row mt-4">
|
|
||||||
<div class="col-xl-4">
|
|
||||||
<div class="card bg-light shadow">
|
<div class="card bg-light shadow">
|
||||||
<div class="card-header text-center">
|
<div class="card-header text-center">
|
||||||
<h4>{% trans "Participation of team" %} {{ participation.team.name }} ({{ participation.team.trigram }})</h4>
|
<h4>{% trans "Participation of team" %} {{ participation.team.name }} ({{ participation.team.trigram }})</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<dl class="row">
|
<dl class="row">
|
||||||
<dt class="col-sm-6 text-right">{% trans "Chosen problem:" %}</dt>
|
<dt class="col-sm-2">{% trans "Chosen problem:" %}</dt>
|
||||||
<dd class="col-sm-6">{{ participation.get_problem_display }}</dd>
|
<dd class="col-sm-10">{{ participation.get_problem_display }}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
|
||||||
<div class="card-footer text-center">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-xl-8">
|
<div id="solution-container">
|
||||||
<div class="card bg-light shadow">
|
<dl class="row">
|
||||||
<div class="card-header text-center">
|
{% trans "No video sent" as novideo %}
|
||||||
<h4>{% trans "Participation of team" %} {{ participation.team.name }} ({{ participation.team.trigram }})</h4>
|
<dt class="col-sm-2">{% trans "Video link:" %}</dt>
|
||||||
</div>
|
<dd class="col-sm-10"><a href="{{ participation.solution.link|default:"#" }}" target="_blank">
|
||||||
<div class="card-body">
|
{{ participation.solution.link|default:novideo }}</a>
|
||||||
{% trans "No video sent" as novideo %}
|
<button class="btn btn-primary" data-toggle="modal" data-target="#uploadVideoModal">{% trans "Upload" %}</button>
|
||||||
{% trans "Video link:" %} <a href="{{ participation.solution.link|default:"#" }}" target="_blank">{{ participation.solution.link|default:novideo }}</a>
|
</dd>
|
||||||
<button class="btn btn-primary" data-toggle="modal" data-target="#uploadVideoModal">{% trans "Upload" %}</button>
|
</dl>
|
||||||
{% if participation.solution.platform == "youtube" %}
|
{% if participation.solution.platform == "youtube" %}
|
||||||
{% include "participation/youtube_iframe.html" with youtube_code=participation.solution.youtube_code %}
|
{% include "participation/youtube_iframe.html" with youtube_code=participation.solution.youtube_code %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
{% trans "This video platform is not supported yet." %}
|
{% trans "This video platform is not supported yet." %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% trans "Upload video" as modal_title %}
|
{% trans "Upload video" as modal_title %}
|
||||||
{% trans "Upload" as modal_button %}
|
{% trans "Upload" as modal_button %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user