diff --git a/rowers/templates/list_workouts.html b/rowers/templates/list_workouts.html index 1efc9586..ea164251 100644 --- a/rowers/templates/list_workouts.html +++ b/rowers/templates/list_workouts.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "newbase.html" %} {% load staticfiles %} {% load rowerfilters %} @@ -41,65 +41,55 @@ {% endblock %} -{% block content %} +{% block main %} -
- -
- - {% if team %} +
    +
  • +

    - {% else %} - - {% endif %} - {{ dateform.as_table }}
    {% csrf_token %} -
-
- -
- {% if user.is_authenticated and user|is_manager %} -
- -
- {% for member in user|team_members %} - {{ member.first_name }} {{ member.last_name }} - {% endfor %} -
-
- {% else %} -   - - {% endif %} - - -
- -{% if team %} -
- {% include "teambuttons.html" with teamid=team.id team=team %} -
-{% endif %} - -
- -
+ + +

+ {% if team %} +

+

+ {% else %} + + {% endif %} + + + +
+

+ +
  • + + + + {{ interactiveplot |safe }} + + {{ the_div |safe }} +
  • +
  • {% if team %}

    {{ team.name }} Team Workouts

    {% else %}

    Workouts of {{ rower.user.first_name }} {{ rower.user.last_name }}

    {% endif %} - + {% if workouts %} @@ -122,7 +112,7 @@ {% endif %} - + {% for workout in workouts %} {% if workout.rankingpiece %} @@ -140,8 +130,8 @@ - {% if workout.user.user == user or user == team.manager %} - {% if workout.name != '' %} + {% if workout.user.user == user or user == team.manager %} + {% if workout.name != '' %} {% else %} {% endif %} - + {% endfor %} @@ -189,140 +179,77 @@ {% else %}

    No workouts found

    {% endif %} - - - -
    - {% if team %} -
    -
    -

    -   -

    + + {% if announcements %} +
  • +

    What's New?

    +
  • + {% for a in announcements %} +
  • +
    +
    + {{ a.created }}: + {{ a.announcement|urlize }}
    +
  • + {% endfor %} + {% endif %} +
  • + {% if rankingonly and not team %} + All Workouts + {% elif not team %} + Ranking Pieces Only {% endif %} -
    - - +
  • +
  • + {% if user|is_promember %} + Glue Workouts + {% else %} + Glue + {% endif %} +
  • +
  • + + {% if workouts.has_previous %} + {% if request.GET.q %} + < + {% else %} + < + {% endif %} + {% endif %} - {{ interactiveplot |safe }} - - - - {{ the_div |safe }} -
  • -
    - {% if announcements %} -

    What's New?

    - {% for a in announcements %} -
    -
    - {{ a.created }}: - {{ a.announcement|urlize }} -
    -
    + + Page {{ workouts.number }} of {{ workouts.paginator.num_pages }}. + + + {% if workouts.has_next %} + {% if request.GET.q %} + > + {% else %} + > + {% endif %} + {% endif %} + + +
  • + {% if user.is_authenticated and user|is_manager %} + +
    + {% for member in user|team_members %} + {{ member.first_name }} {{ member.last_name }} {% endfor %} -

     

    + {% else %} +   {% endif %}
    -
    -

    About

    -

    This site is a beta site, pioneering rowing data - visualization and analysis. No warranties. The site's author is - Sander Roosendaal. A Masters rower. - - Read his blog -

    -

    © Rowsandall s.r.o.

    -
    - - -
    -
    -
  • -
    -
    - - -
    - {% if rankingonly and not team %} -
    - All Workouts -
    - {% elif not team %} -
    - Ranking Pieces Only -
    - {% endif %} -
    - {% if user|is_promember %} - Glue Workouts - {% else %} - Glue - {% endif %} -
    -
    - Empower Repair -
    -

     

    - {% if team %} -
    - {% else %} - - {% endif %} -
    - -
    -
    - -
    - -
    -
    - - {% if workouts.has_previous %} - {% if request.GET.q %} - < - {% else %} - < - {% endif %} - {% endif %} - - - Page {{ workouts.number }} of {{ workouts.paginator.num_pages }}. - - - {% if workouts.has_next %} - {% if request.GET.q %} - > - {% else %} - > - {% endif %} - {% endif %} - + + - {% endblock %} +{% endblock %} + +{% block sidebar %} +{% include 'menu_workouts.html' %} +{% endblock %} diff --git a/rowers/views.py b/rowers/views.py index 4a06cb58..7a1dc4a0 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -6469,6 +6469,7 @@ def workouts_view(request,message='',successmessage='', return render(request, 'list_workouts.html', {'workouts': workouts, + 'active': 'nav-workouts', 'rower':r, 'dateform':dateform, 'startdate':startdate, diff --git a/static/css/rowsandall2.css b/static/css/rowsandall2.css index 1d72ba77..0a501b48 100644 --- a/static/css/rowsandall2.css +++ b/static/css/rowsandall2.css @@ -450,15 +450,15 @@ a.button { /* green */ .green { - color: #e8f0de; - border: solid 1px #538312; - background: #64991e; + color: #e8f0de; + border: solid 1px #538312; + background: #64991e; } .green:hover { - background: #538018; + background: #538018; } .green:active { - color: #a9c08c; + color: #a9c08c; } /* palegreen */ diff --git a/templates/newbase.html b/templates/newbase.html index 7350912e..b5f1152d 100644 --- a/templates/newbase.html +++ b/templates/newbase.html @@ -149,7 +149,7 @@ {% if user.is_authenticated %}
  • - + {% if user.rower.rowerplan == 'pro' %} {% elif user.rower.rowerplan == 'coach' %} @@ -157,7 +157,7 @@ {% elif user.rower.rowerplan == 'plan' %} {% else %} - + {% endif %} @@ -189,27 +189,27 @@
    • - +  Workouts
    • - +  Racing
    • - +  Analysis
    • - +  Plan
    • - +  Teams
    • @@ -235,16 +235,16 @@

      Follow us on - +   - +   - +   - +  

      @@ -254,16 +254,19 @@

      Help

      • - Help + Help
      • - Rowing Analytics Blog + + Rowing Analytics Blog +
      • - Rowing Data Facebook Group + + Rowing Data Facebook Group
      • - Rowing Physics + Rowing Physics
      @@ -271,19 +274,19 @@

      About

      • - Contact + Contact
      • - Rowsandall s.r.o. + Rowsandall s.r.o.
      • - Brochure + Brochure
      • - Partnering? + Partnering?
      • - Developers Info + Developers Info
      @@ -291,7 +294,7 @@

      Paid Plans

      • - Paid Plans + Paid Plans
      @@ -299,10 +302,10 @@

      Legal

      • - Terms and Conditions + Terms and Conditions
      • - Privacy Policy + Privacy Policy
  • {{ workout.date|date:"Y-m-d" }} {{ workout.starttime|date:"H:i" }} {{ workout.name }} @@ -170,17 +160,17 @@ - - {{ workout.user.user.first_name }} - {{ workout.user.user.last_name }} - + + {{ workout.user.user.first_name }} + {{ workout.user.user.last_name }} + Flex Delete