1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 04:38:24 +02:00

Display team solutions

This commit is contained in:
Yohann D'ANELLO
2020-04-30 01:20:50 +02:00
parent 3fdda5a030
commit f08f52c129
5 changed files with 44 additions and 7 deletions

View File

@ -40,10 +40,20 @@
<h4>{% trans "Documents" %}</h4>
{% if team.motivation_letters %}
{% if team.motivation_letters.count %}
<div class="alert alert-info">
{% blocktrans with version=team.motivation_letters.count %}Motivation letter (version {{ version }}):{% endblocktrans %}
<a href="{{ team.motivation_letters.last.file.url }}">{% trans "Download" %}</a>
<strong>{% blocktrans with version=team.motivation_letters.count %}Motivation letter (version {{ version }}):{% endblocktrans %}</strong>
<a data-turbolinks="false" href="{% url "member:document" file=team.motivation_letters.last.file %}">{% trans "Download" %}</a>
</div>
{% endif %}
{% if team.solutions.count %}
<div class="alert alert-info">
<ul>
{% for solution in team.solutions.all %}
<li><strong>{{ solution }} :</strong> <a data-turbolinks="false" href="{% url "member:document" file=solution.file %}">{% trans "Download" %}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}