removing unencoded links to workout from templates
This commit is contained in:
@@ -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> </p>
|
||||
|
||||
Reference in New Issue
Block a user