diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py
index d48cd426..f7eb74e8 100644
--- a/rowers/interactiveplots.py
+++ b/rowers/interactiveplots.py
@@ -3149,11 +3149,23 @@ def thumbnails_set(r,id,favorites):
rowdata.dropna(axis=1,how='all',inplace=True)
if rowdata.empty:
- return [
+ try:
+ rowdata = dataprep.getsmallrowdata_db(columns,ids=[id],doclean=False,
+ workstrokesonly=False)
+ except:
+ return [
+ {'script':"",
+ 'div':"",
+ 'notes':""
+ }]
+
+ if rowdata.empty:
+ return [
{'script':"",
'div':"",
'notes':""
}]
+
else:
try:
rowdata.sort_values(by='time',ascending=True,inplace=True)
diff --git a/rowers/templates/plannedsessions.html b/rowers/templates/plannedsessions.html
index 6d35a62e..3f68389e 100644
--- a/rowers/templates/plannedsessions.html
+++ b/rowers/templates/plannedsessions.html
@@ -101,10 +101,10 @@
{{ workout.name }}
+ {% if workout.user.user != user %}
+ {{ workout.user.user.first_name }} {{ workout.user.user.last_name }}
+ {% endif %}
{% block left_panel %}
diff --git a/rowers/templates/workout_form.html b/rowers/templates/workout_form.html
index 2fa29d05..03a04eff 100644
--- a/rowers/templates/workout_form.html
+++ b/rowers/templates/workout_form.html
@@ -70,7 +70,11 @@
-{% localtime on %}
+ {% localtime on %}
+ {% if workout.user.user != user %}
+ | Rower: | {{ rower.user.first_name }} {{ rower.user.last_name }} |
+
+ {% endif %}
| Date/Time: | {{ workout.startdatetime|localtime}} |
{% endlocaltime %}
diff --git a/rowers/views.py b/rowers/views.py
index 74d4b9d4..dfd3a102 100644
--- a/rowers/views.py
+++ b/rowers/views.py
@@ -8067,6 +8067,8 @@ def workout_flexchart3_view(request,*args,**kwargs):
promember=1
if request.user == row.user.user:
mayedit=1
+ if checkworkoutuser(request.user,row):
+ mayedit=1
workouttype = 'ote'
if row.workouttype in ('water','coastal'):
@@ -8796,6 +8798,7 @@ def workout_edit_view(request,id=0,message="",successmessage=""):
'mapscript':mapscript,
'aantalcomments':aantalcomments,
'mapdiv':mapdiv,
+ 'rower':r,
})
else:
@@ -8808,6 +8811,7 @@ def workout_edit_view(request,id=0,message="",successmessage=""):
'mapscript':mapscript,
'aantalcomments':aantalcomments,
'mapdiv':mapdiv,
+ 'rower':r,
})