From 12ecd3d4e914e7fc9c4a0e33725bd54b8f616ab9 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Fri, 3 Mar 2017 08:23:05 +0100 Subject: [PATCH] added link back to workout on graph page --- rowers/templates/show_graph.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/rowers/templates/show_graph.html b/rowers/templates/show_graph.html index 1ce9ddfd..0b9897b0 100644 --- a/rowers/templates/show_graph.html +++ b/rowers/templates/show_graph.html @@ -6,10 +6,21 @@ {% block content %}

{{ workout.name }}

-
+
+{% if user.is_authenticated and user == rower.user %} +

+ Edit Workout +

+{% else %} +

+ See Workout +

+{% endif %} +
+
{% if user.is_authenticated and user == rower.user %}

- Delete + Delete Chart

{% else %}