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

@@ -52,16 +52,16 @@
<li>
{% if user.is_authenticated and user == rower.user %}
<p>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}/edit">Edit Workout</a>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id|encode }}/edit">Edit Workout</a>
</p>
{% else %}
<p>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}">See Workout</a>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id|encode }}">See Workout</a>
</p>
{% endif %}
{% if user.is_authenticated and user == rower.user %}
<p>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}/workflow">Workflow View</a>
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id|encode }}/workflow">Workflow View</a>
</p>
{% else %}
<p>&nbsp;</p>