Fix display of round + add link to rounds where missing

This commit is contained in:
Gabriel Augendre 2018-03-20 08:30:13 +01:00
parent 7d9b3c05d7
commit a1e1e5490c
No known key found for this signature in database
GPG key ID: F360212F958357D4
2 changed files with 4 additions and 2 deletions

View file

@ -43,7 +43,8 @@
{% if rounds %}
<ul class="list-group">
{% for round in rounds %}
<a href="{% url 'round-edit' round.pk %}" class="list-group-item">{{ round.repetition_number }} répétitions
<a href="{% url 'round-edit' round.pk %}"
class="list-group-item list-group-item-action">{{ round.repetition_number }} répétitions
&times; {{ round.chosen_weight }} {{ equipment.unit }}</a>
{% endfor %}
</ul>

View file

@ -39,7 +39,8 @@
{% if session.rounds.all %}
<ul class="list-group">
{% for round in session.rounds.all %}
<a href="#" class="list-group-item list-group-item-action">{{ round.equipment.name }}
<a href="{% url 'round-edit' round.pk %}"
class="list-group-item list-group-item-action">{{ round.equipment.name }}
&ndash; {{ round.repetition_number }} répétitions &times; {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
{% endfor %}
</ul>