diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py
index f08df2b7..72f70a09 100644
--- a/rowers/interactiveplots.py
+++ b/rowers/interactiveplots.py
@@ -803,7 +803,6 @@ def interactive_histoall(theworkouts):
# add watermark
plot.extra_y_ranges = {"watermark": watermarkrange}
plot.extra_x_ranges = {"watermark": watermarkrange}
- plot.sizing_mode = 'scale_width'
plot.image_url([watermarkurl],watermarkx,watermarky,
watermarkw,watermarkh,
diff --git a/rowers/templates/histo_single.html b/rowers/templates/histo_single.html
index 042acf0f..6f3594a2 100644
--- a/rowers/templates/histo_single.html
+++ b/rowers/templates/histo_single.html
@@ -1,66 +1,34 @@
-{% extends "base.html" %}
+{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}View Workout {% endblock %}
-{% block content %}
+{% block main %}
-
-
+
+
- {{ interactiveplot |safe }}
-
-
-
+{{ interactiveplot |safe }}
-
- {% if user.is_authenticated and mayedit %}
-
-
- {% endif %}
-
-
-
-
-
-
Indoor Rower Power Histogram
-
-
-
-
+{% if user.is_authenticated and mayedit %}
+
Indoor Rower Power Histogram
+
+
+
+{% endif %}
{% endblock %}
+
+
+{% block sidebar %}
+{% include 'menu_workouts.html' %}
+{% endblock %}
diff --git a/rowers/views.py b/rowers/views.py
index a7b99ac2..2bed0092 100644
--- a/rowers/views.py
+++ b/rowers/views.py
@@ -2856,7 +2856,7 @@ def workout_test_task_view(request,id=0):
# Show Stroke power histogram for a workout
@login_required()
def workout_histo_view(request,id=0):
- row = get_workout(id)
+ w = get_workout(id)
promember=0
mayedit=0
@@ -2865,19 +2865,39 @@ def workout_histo_view(request,id=0):
result = request.user.is_authenticated() and ispromember(request.user)
if result:
promember=1
- if request.user == row.user.user:
+ if request.user == w.user.user:
mayedit=1
if not promember:
return HttpResponseRedirect("/rowers/about/")
- res = interactive_histoall([row])
+ res = interactive_histoall([w])
script = res[0]
div = res[1]
+ breadcrumbs = [
+ {
+ 'url':'/rowers/list-workouts',
+ 'name':'Workouts'
+ },
+ {
+ 'url':get_workout_default_page(request,id),
+ 'name': str(w.id)
+ },
+ {
+ 'url':reverse(workout_histo_view,kwargs={'id':id}),
+ 'name': 'Histogram'
+ }
+
+ ]
+
+
return render(request,
'histo_single.html',
{'interactiveplot':script,
+ 'breadcrumbs':breadcrumbs,
+ 'active':'nav-workouts',
+ 'rower':r,
'the_div':div,
'id':int(id),
'mayedit':mayedit,