Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Correctly render the link to the exercise from the weight log page.

Roland Geider3fc8796b31c9
diff --git a/wger/manager/templates/mobile/workout/log.html b/wger/manager/templates/mobile/workout/log.html
index 6395deb17..84c232aee 100644
--- a/wger/manager/templates/mobile/workout/log.html
+++ b/wger/manager/templates/mobile/workout/log.html
@@ -49,7 +49,7 @@ $(document).on('pageinit', function(){
<ul data-role="listview"
style="margin-top: 3em;">
<li>
- <a href="{{ exercise.get_absolute_url }}">{{ exercise.obj.name }}</a>
+ <a href="{{ exercise.obj.get_absolute_url }}">{{ exercise.obj.name }}</a>
</li>
</ul>
diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.html
index ddc0f15a5..3b844f659 100644
--- a/wger/manager/templates/workout/log.html
+++ b/wger/manager/templates/workout/log.html
@@ -45,7 +45,7 @@ function custom_modal_init()
{% with exercise_list=day_list|get_item:exercise.obj.id %}
<div class="alert alert-info" style="text-align: center;margin-top:1em;">
- <a href="{{ exercise.get_absolute_url }}">{{ exercise.obj.name }}</a>
+ <a href="{{ exercise.obj.get_absolute_url }}">{{ exercise.obj.name }}</a>
</div>
{% if exercise_list.log_by_date %}