Private
Public Access
1
0

removing unencoded links to workout from templates

This commit is contained in:
Sander Roosendaal
2019-02-14 10:40:58 +01:00
parent e1aea90651
commit 5b2fbfcee0
41 changed files with 127 additions and 114 deletions

View File

@@ -81,7 +81,7 @@
<td> {{ workout.date|date:"Y-m-d" }} </td>
<td>
<div class="tooltip">
<a href="{% url manager.defaultlandingpage id=workout.id %}">
<a href="{% url manager.defaultlandingpage id=workout.id|encode %}">
{{ workout.name }}
</a>
<span class="tooltiptext">{{ workout.notes }}</span>
@@ -90,7 +90,7 @@
<td> {{ workout.distance }}m</td>
<td> {{ workout.duration |durationprint:"%H:%M:%S.%f" }} </td>
<td>
<a href="/rowers/sessions/{{ psdict.id.1 }}/detach/{{ workout.id }}/">Detach</a>
<a href="/rowers/sessions/{{ psdict.id.1 }}/detach/{{ workout.id|encode }}/">Detach</a>
</td>
</tr>
{% endfor %}