added link back to workout on graph page
This commit is contained in:
@@ -6,10 +6,21 @@
|
||||
{% block content %}
|
||||
<h1>{{ workout.name }}</h1>
|
||||
|
||||
<div class="grid_2 suffix_10 alpha">
|
||||
<div class="grid_2 alpha">
|
||||
{% if user.is_authenticated and user == rower.user %}
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}/edit">Edit Workout</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<p>
|
||||
<a class="button gray small" href="/rowers/workout/{{ graph.workout.id }}">See Workout</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="grid_2 suffix_8 omega">
|
||||
{% if user.is_authenticated and user == rower.user %}
|
||||
<p>
|
||||
<a class="button red small" href="/rowers/graph/{{ graph.id }}/deleteconfirm">Delete</a>
|
||||
<a class="button red small" href="/rowers/graph/{{ graph.id }}/deleteconfirm">Delete Chart</a>
|
||||
</p>
|
||||
{% else %}
|
||||
<p> </p>
|
||||
|
||||
Reference in New Issue
Block a user