Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Access correct loop counter

Roland Geiderc0ee981ba37e
diff --git a/wger/nutrition/templates/plan/view.html b/wger/nutrition/templates/plan/view.html
index 536347833..bab577807 100644
--- a/wger/nutrition/templates/plan/view.html
+++ b/wger/nutrition/templates/plan/view.html
@@ -66,7 +66,7 @@ function wgerCustomModalInit()
<tr>
<td {% if meal.mealitem_set.count %}rowspan="{{meal.mealitem_set.count}}"{% endif %}>
<strong>
- {% trans "Nr."%} {{ forloop.parentloop.counter }}
+ {% trans "Nr."%} {{ forloop.counter }}
{% if meal.time %} &ndash; {{meal.time|time:"H:i"}}{% endif %}
</strong>