Private
Public Access
1
0

added link back to workout on graph page

This commit is contained in:
Sander Roosendaal
2017-03-03 08:23:05 +01:00
parent 2f1db232cc
commit 12ecd3d4e9

View File

@@ -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>&nbsp;</p>