From 253454ff3f71bfdd7ffd6c51b1848950f91b027c Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 14 Feb 2017 10:50:03 +0100 Subject: [PATCH] list workouts for team members --- rowers/tasks.py | 2 +- rowers/templates/403.html | 3 +- rowers/templates/developers.html | 6 +- rowers/templates/list_workouts.html | 45 +++++- rowers/urls.py | 2 + rowers/views.py | 238 +++++++++++++++------------- 6 files changed, 181 insertions(+), 115 deletions(-) diff --git a/rowers/tasks.py b/rowers/tasks.py index 18024c0a..c2f00b7d 100644 --- a/rowers/tasks.py +++ b/rowers/tasks.py @@ -279,7 +279,7 @@ def handle_sendemail_request(email,name,code,teamname,requestor,id): message += 'Click the direct link to accept: \n' message += 'https://rowsandall.com/rowers/me/request/'+code+' \n\n' message += 'Click the following link to reject the request: \n' - message += 'https://rowsandall.com/rowers/me/request/'+id+' \n\n' + message += 'https://rowsandall.com/rowers/me/request/'+str(id)+' \n\n' message += 'You can find all pending requests on your team management page:\n' message += 'https://rowsandall.com/rowers/me/teams\n\n' message += "Best Regards, the Rowsandall Team" diff --git a/rowers/templates/403.html b/rowers/templates/403.html index 65394b28..fc4b11cf 100644 --- a/rowers/templates/403.html +++ b/rowers/templates/403.html @@ -9,7 +9,8 @@

Forbidden

-Access forbidden + Access forbidden. You probably tried to access functionality on a workout + or chart that is not owned by you.

diff --git a/rowers/templates/developers.html b/rowers/templates/developers.html index e2907195..268fed20 100644 --- a/rowers/templates/developers.html +++ b/rowers/templates/developers.html @@ -64,7 +64,11 @@ receive stroke data from the site directly.

-

The REST API is a work in progress.

+

The REST API is a work in progress. We are open to improvement + suggestions (provided they don't break existing apps). Please send + email to info@rowsandall.com + with questions and/or suggestions. We + will get back to you as soon as possible.