diff --git a/rowers/templates/c2_list_import.html b/rowers/templates/c2_list_import.html index 1ea5c4eb..69a81cc7 100644 --- a/rowers/templates/c2_list_import.html +++ b/rowers/templates/c2_list_import.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "newbase.html" %} {% load staticfiles %} {% load rowerfilters %} @@ -6,43 +6,47 @@ {% block content %}
| Distance | -Duration | -Date | -Type | -Import | -
|---|---|---|---|---|
| {{ value }} | - {% endif %} - {% if key == "type" %} -{{ value }} | - {% endif %} - {% if key == "distance" %} -{{ value }}m | - {% endif %} - {% if key == "time_formatted" %} -{{ value }} | - {% endif %} - {% if key == "id" %} -Import | - {% endif %} - {% endfor %} -
No workouts found
- {% endif %} +{% if data %} +| Distance | +Duration | +Date | +Type | +Import | +
|---|---|---|---|---|
| {{ value }} | + {% endif %} + {% if key == "type" %} +{{ value }} | + {% endif %} + {% if key == "distance" %} +{{ value }}m | + {% endif %} + {% if key == "time_formatted" %} +{{ value }} | + {% endif %} + {% if key == "id" %} +Import | + {% endif %} + {% endfor %} +
No workouts found
+{% endif %} +{% endblock %} + +{% block sidebar %} +{% include 'menu_workouts.html' %} {% endblock %} diff --git a/rowers/templates/histoall.html b/rowers/templates/histoall.html deleted file mode 100644 index 6b1ee9c6..00000000 --- a/rowers/templates/histoall.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "base.html" %} -{% load staticfiles %} -{% load rowerfilters %} - -{% block title %}View Workout {% endblock %} - -{% block content %} - - - - - {{ interactiveplot |safe }} - - - - - -Summary of the past 12 months for {{ theuser.first_name }} {{ theuser.last_name }}
- -Direct link for other Pro users: - https://rowsandall.com/rowers/{{ id }}/histo-all -
- --
-
The founding principle for rowsandall.com was, and still is, free data +
The founding principle for rowsandall.com was, and still is, free data and analysis for rowers. Fulfilling that mission means that we try to test and support as many widely used rowing related hardware and software products as possible. Since these products typically have rapid update @@ -58,11 +57,7 @@ at info@rowsandall.com with information about your product/service including any important links or images prior to sending the product.
-We currently envision a couple of ways in which we can partner with @@ -99,6 +94,9 @@
-- Click on session name to view -
-Your username and password didn't match. Please try again.
+{% endif %} + +Thanks for spending some quality time on rowsandall.com today.
+| Import | -Date/Time | -Duration | -Total Distance | -Type | -
|---|---|---|---|---|
| -Import | -{{ workout|ualookup:'starttime' }} | -{{ workout|ualookup:'duration' }} | -{{ workout|ualookup:'distance' }} m | -{{ workout|ualookup:'type' }} | -
No workouts found. We only list workouts with time data series.
- {% endif %} +{% if workouts %} +| Import | +Date/Time | +Duration | +Total Distance | +Type | +
|---|---|---|---|---|
| + Import | +{{ workout|ualookup:'starttime' }} | +{{ workout|ualookup:'duration' }} | +{{ workout|ualookup:'distance' }} m | +{{ workout|ualookup:'type' }} | +
No workouts found. We only list workouts with time data series.
+{% endif %} +{% endblock %} + +{% block sidebar %} +{% include 'menu_workouts.html' %} {% endblock %} diff --git a/rowers/views.py b/rowers/views.py index f3342eb2..7f654c79 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -211,7 +211,7 @@ def getrequestrower(request,rowerid=0,userid=0,notpermanent=False): userid = int(userid) rowerid = int(rowerid) - + if notpermanent == False: if rowerid == 0 and 'rowerid' in request.session: rowerid = request.session['rowerid'] @@ -1025,6 +1025,7 @@ def rower_register_view(request): {'form':form,}) # Shows analysis page +@login_required() def analysis_view(request,userid=0): r = getrequestrower(request,userid=userid) return render(request, @@ -1036,6 +1037,7 @@ def analysis_view(request,userid=0): ) # Shows laboratory page +@login_required() def laboratory_view(request,userid=0): r = getrequestrower(request,userid=userid) return render(request, diff --git a/static/css/frontstyles.css b/static/css/frontstyles.css index 818d0e76..a3701396 100644 --- a/static/css/frontstyles.css +++ b/static/css/frontstyles.css @@ -352,6 +352,7 @@ .main-head { grid-area: header; background-color: rgba(0,0,0,0.6); + padding: 15px; } @@ -359,6 +360,7 @@ .main-user { grid-area: user; background-color: rgba(0,0,0,0.6); + padding: 15px; } .content {