1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 03:02:23 +00:00

Display the solutions of the team

This commit is contained in:
Yohann D'ANELLO 2021-01-12 16:26:52 +01:00
parent b4e7ec6550
commit 09e5a72470
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -12,6 +12,20 @@
<dl class="row">
<dt class="col-sm-2">{% trans "Team:" %}</dt>
<dd class="col-sm-10"><a href="{% url "participation:team_detail" pk=participation.team.pk %}">{{ participation.team }}</a></dd>
<dt class="col-sm-2">{% trans "Tournament:" %}</dt>
<dd class="col-sm-10"><a href="{% url "participation:tournament_detail" pk=participation.tournament.pk %}">{{ participation.tournament }}</a></dd>
<dt class="col-sm-2">{% trans "Solutions:" %}</dt>
<dd class="col-sm-10">
{% for solution in participation.solutions.all %}
<a href="{% url "solution" filename=solution.file %}">
{% blocktrans trimmed with problem=solution.problem %}problem {{ problem }}{% endblocktrans %}{% if not forloop.last %}, {% endif %}
</a>
{% empty %}
{% trans "No solution was uploaded yet." %}
{% endfor %}
</dd>
</dl>
</div>
</div>