From ec7002bfddd52ebd138f999713bfd088e2b245f3 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 18 Oct 2018 12:20:27 +0200 Subject: [PATCH 1/4] fixes in style sheet --- static/css/frontstyles.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/css/frontstyles.css b/static/css/frontstyles.css index 1915b570..818d0e76 100644 --- a/static/css/frontstyles.css +++ b/static/css/frontstyles.css @@ -590,10 +590,10 @@ } .main-content li.grid_4 { - grid-column-end: span 3; + grid-column-end: span 4; } .main-content li.grid_5 { - grid-column-end: span 3; + grid-column-end: span 5; } } From e9bc68c2a9635d41e2be58bd8624e57d11d69b53 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 18 Oct 2018 15:37:05 +0200 Subject: [PATCH 2/4] cleaning up --- rowers/templates/c2_list_import.html | 84 ++++++++++--------- rowers/templates/histoall.html | 54 ------------ rowers/templates/invitations.html | 27 ------ rowers/templates/partners.html | 20 ++--- rowers/templates/plannedsssionsmanage.html | 48 ----------- rowers/templates/registration/logout.html | 21 +++++ rowers/templates/underarmour_list_import.html | 64 +++++++------- rowers/views.py | 4 +- static/css/frontstyles.css | 2 + 9 files changed, 113 insertions(+), 211 deletions(-) delete mode 100644 rowers/templates/histoall.html delete mode 100644 rowers/templates/invitations.html delete mode 100644 rowers/templates/plannedsssionsmanage.html create mode 100644 rowers/templates/registration/logout.html 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 %}

Available on C2 Logbook

- {% if data %} - - - - - - - - - - - - {% for workout in data %} - - {% for key,value in workout.items %} - {% if key == "date" %} - - {% endif %} - {% if key == "type" %} - - {% endif %} - {% if key == "distance" %} - - {% endif %} - {% if key == "time_formatted" %} - - {% endif %} - {% if key == "id" %} - - {% endif %} - {% endfor %} - - - {% endfor %} - -
Distance Duration Date Type Import
{{ value }}{{ value }}{{ value }}m{{ value }}Import
- {% else %} -

No workouts found

- {% endif %} +{% if data %} + + + + + + + + + + + + {% for workout in data %} + + {% for key,value in workout.items %} + {% if key == "date" %} + + {% endif %} + {% if key == "type" %} + + {% endif %} + {% if key == "distance" %} + + {% endif %} + {% if key == "time_formatted" %} + + {% endif %} + {% if key == "id" %} + + {% endif %} + {% endfor %} + + + {% endfor %} + +
Distance Duration Date Type Import
{{ value }}{{ value }}{{ value }}m{{ value }}Import
+{% else %} +

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 }} - - - - - -
- - -

Indoor Rower Power Histogram

- -

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_div|safe }} -
- -
- -{% endblock %} diff --git a/rowers/templates/invitations.html b/rowers/templates/invitations.html deleted file mode 100644 index fc1748c1..00000000 --- a/rowers/templates/invitations.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Teams {% endblock %} - -{% block content %} -
-
-

-

Invitations

- - Future invitations page - -

- - -
-
-

-

Manual with Code

-

-
-
- - - - -{% endblock %} diff --git a/rowers/templates/partners.html b/rowers/templates/partners.html index 1bda5975..237a0df7 100644 --- a/rowers/templates/partners.html +++ b/rowers/templates/partners.html @@ -1,12 +1,11 @@ -{% extends "base.html" %} +{% extends "newbase.html" %} {% block title %}About us{% endblock title %} -{% block content %} +{% block main %} -
-

Are you interested in partnering with Rowsandall.com?

+

Are you interested in partnering with Rowsandall.com?

-

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.

-
- - -

Examples of possible partnerships

We currently envision a couple of ways in which we can partner with @@ -99,6 +94,9 @@

-
- {% endblock content %} +{% endblock main %} + +{% block sidebar %} +{% include 'menu_help.html' %} +{% endblock %} diff --git a/rowers/templates/plannedsssionsmanage.html b/rowers/templates/plannedsssionsmanage.html deleted file mode 100644 index 8be3f91b..00000000 --- a/rowers/templates/plannedsssionsmanage.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "base.html" %} -{% load staticfiles %} -{% load rowerfilters %} - -{% block title %}Planned Sessions{% endblock %} - -{% block content %} -
- {% include "planningbuttons.html" %} -
-
-

Plan for {{ rower.user.first_name }} {{ rower.user.last_name }}

-
-
- -
- - Today - - - This Week - - - This Month - - - Last Week - - - Last Month - -
-
-
-

- Click on session name to view -

-
- - - - -{% endblock %} diff --git a/rowers/templates/registration/logout.html b/rowers/templates/registration/logout.html new file mode 100644 index 00000000..a6140cea --- /dev/null +++ b/rowers/templates/registration/logout.html @@ -0,0 +1,21 @@ +{% extends "newbasefront.html" %} + +{% block main %} + +{% if form.errors %} +

Your username and password didn't match. Please try again.

+{% endif %} + +
    +
  • +

    Thanks for spending some quality time on rowsandall.com today.

    +
  • +
+ +

+ Follow @rowsandall +

+ + +{% endblock %} diff --git a/rowers/templates/underarmour_list_import.html b/rowers/templates/underarmour_list_import.html index 34fb26a3..424f7feb 100644 --- a/rowers/templates/underarmour_list_import.html +++ b/rowers/templates/underarmour_list_import.html @@ -1,37 +1,41 @@ -{% extends "base.html" %} +{% extends "newbase.html" %} {% load staticfiles %} {% load rowerfilters %} {% block title %}Workouts{% endblock %} -{% block content %} +{% block main %}

Available on MapMyFitness (UnderArmour)

- {% if workouts %} - - - - - - - - - - - - {% for workout in workouts %} - - - - - - - - - {% endfor %} - -
Import Date/Time Duration Total Distance Type
-Import{{ workout|ualookup:'starttime' }}{{ workout|ualookup:'duration' }} {{ workout|ualookup:'distance' }} m{{ workout|ualookup:'type' }}
- {% else %} -

No workouts found. We only list workouts with time data series.

- {% endif %} +{% if workouts %} + + + + + + + + + + + + {% for workout in workouts %} + + + + + + + + + {% endfor %} + +
Import Date/Time Duration Total Distance Type
+ Import{{ workout|ualookup:'starttime' }}{{ workout|ualookup:'duration' }} {{ workout|ualookup:'distance' }} m{{ workout|ualookup:'type' }}
+{% else %} +

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 { From e607d24a40e62efd8201256858dc84e55f088b3b Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 18 Oct 2018 15:39:04 +0200 Subject: [PATCH 3/4] extra vignet --- rowers/templates/frontpage.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/templates/frontpage.html b/rowers/templates/frontpage.html index 60f4e349..24692295 100644 --- a/rowers/templates/frontpage.html +++ b/rowers/templates/frontpage.html @@ -83,7 +83,7 @@ alt="Analyze" width="62px">

- Easily upload data from the most popular devices and apps. Maintain + Maintain a consistent log for all your rowing (indoor and on the water).

From 494e71f1519f5ab65b2a9f002c7aee870d93b05e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 18 Oct 2018 15:43:31 +0200 Subject: [PATCH 4/4] small improvements --- rowers/templates/frontpage.html | 10 ++++++++++ static/css/frontstyles.css | 1 + static/img/upload.png | Bin 0 -> 2240 bytes 3 files changed, 11 insertions(+) create mode 100644 static/img/upload.png diff --git a/rowers/templates/frontpage.html b/rowers/templates/frontpage.html index 24692295..5751ed7c 100644 --- a/rowers/templates/frontpage.html +++ b/rowers/templates/frontpage.html @@ -76,6 +76,16 @@
  • WHAT WE OFFER

  • +
  • +

    SYNC

    +
    + Analyze +
    +

    + Easily upload data from the most popular devices and apps. +

    +
  • LOG

    diff --git a/static/css/frontstyles.css b/static/css/frontstyles.css index a3701396..643bfa83 100644 --- a/static/css/frontstyles.css +++ b/static/css/frontstyles.css @@ -476,6 +476,7 @@ overflow-x: hidden; margin-left: 15px; margin-right: 15px; + margin-bottom: 15px; } diff --git a/static/img/upload.png b/static/img/upload.png new file mode 100644 index 0000000000000000000000000000000000000000..53b08fc3ac2ba355604c6fdf815ba34706e64a16 GIT binary patch literal 2240 zcmV;x2tW6UP)n zja8DQ$m15ZAl2g%6Qajuq$!&H|JzqRF+5bQ-s*>@C&PH_1KSpqONQ}zXc*-qus*^? zww9kefRT66OEt~44~`8uyR2!k9XQ{Ft_L-$MJtk3+>%JZ>j|_)pyL{vm#RJc+2{Bk z!t3%?SFpPW{c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