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
1 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,20 @@
<dl class="row"> <dl class="row">
<dt class="col-sm-2">{% trans "Team:" %}</dt> <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> <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> </dl>
</div> </div>
</div> </div>