From 6026b1b9bb043329988144020e5c4544cdcfe502 Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Thu, 29 Sep 2022 13:19:11 +0200
Subject: [PATCH] fix
---
boatmovers/templates/faq.html | 1 -
rowers/templates/instroke.html | 11 +---
rowers/templates/instroke_interactive.html | 11 +++-
rowers/templates/menu_workout.html | 2 +-
rowers/templatetags/rowerfilters.py | 17 +++---
rowers/views/workoutviews.py | 65 ++++++++++++++++------
6 files changed, 69 insertions(+), 38 deletions(-)
diff --git a/boatmovers/templates/faq.html b/boatmovers/templates/faq.html
index eab7d37d..ad3e9de3 100644
--- a/boatmovers/templates/faq.html
+++ b/boatmovers/templates/faq.html
@@ -90,7 +90,6 @@ zien welk ploeglid bij Willem III roeit en welk ploeglid bij De Hoop.
-
- {% if user.rower.rowerplan == 'basic' %}
+ {% if user.rower|is_basic %}
This is a preview of the page with advanced functionality for Pro users.
@@ -40,20 +40,15 @@
-
{% if instrokemetrics %}
- {% for metric in instrokemetrics %}
- {{ metric }}
-
- {% endfor %}
-
- NEW: Dynamic
+ Dynamic
{% else %}
Unfortunately, this workout doesn't have any in stroke metrics
{% endif %}
-
+
diff --git a/rowers/templates/instroke_interactive.html b/rowers/templates/instroke_interactive.html
index d22d2f4e..db6aaa5d 100644
--- a/rowers/templates/instroke_interactive.html
+++ b/rowers/templates/instroke_interactive.html
@@ -119,10 +119,15 @@ $( function() {
- -
-
This is an experimental prototype. It's behavior is not guaranteed. Response may be slow.
-
-
+ {% if user.rower|is_basic %}
+
+
+ This is a preview of the page with advanced functionality for Pro users.
+ See the About page for more information
+ and to sign up for Pro Membership
+
+ {% endif %}