Fix display of round + add link to rounds where missing
This commit is contained in:
parent
7d9b3c05d7
commit
a1e1e5490c
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
× {{ round.chosen_weight }} {{ equipment.unit }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -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 }}
|
||||
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue