Display the solutions of the team
This commit is contained in:
parent
b4e7ec6550
commit
09e5a72470
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue