From 1d8d9acf92954eafb6cfd6d5512ca1cf16b228c9 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Wed, 4 May 2022 16:38:48 -0400 Subject: [PATCH] more stripe --- ..._courses_partnertraining_index.html.liquid | 22 +++++++++++++----- .../Stripe/homepage.html.liquid | 23 +++++++++++-------- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid index c62ede62..130e153b 100644 --- a/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid +++ b/NP_Custom_Templates/customer_templates/Stripe/_courses_partnertraining_index.html.liquid @@ -102,17 +102,24 @@ {% comment %} In Progress courses {% endcomment %} {% if courses_in_progress.size > 0 %} {% for course in courses_in_progress %} - {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% for category in course.categories %} + {% if category.name == 'Partner Training'%} + {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% endif %} + {% endfor %} {% endfor %} {% endif %} {% comment %} Enrolled courses {% endcomment %} {% if courses_enrolled.size > 0 %} {% for course in courses_enrolled %} - {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% for category in course.categories %} + {% if category.name == 'Partner Training'%} + {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% endif %} + {% endfor %} {% endfor %} {% endif %} - {% endif %} @@ -123,7 +130,11 @@
{% for course in courses_completed %} - {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% for category in course.categories %} + {% if category.name == 'Partner Training'%} + {% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} + {% endif %} + {% endfor %} {% endfor %}
{% endif %} @@ -141,5 +152,4 @@ -{% include "footer" %} -}} \ No newline at end of file +{% include "footer" %} \ No newline at end of file diff --git a/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid index 9cce9830..fee2f429 100644 --- a/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid +++ b/NP_Custom_Templates/customer_templates/Stripe/homepage.html.liquid @@ -9,21 +9,24 @@ {% case role %} {% when 'developer', 'architect' %}
- Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}? - Here is the training you are eligible for in your role as {{ current_person.properties.role }}. + Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}? +
+ Here is the training you are eligible for in your role as {{ current_person.properties.role }}.
{% else %}
- Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}? - Here is the training you are eligible for in your role as + Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}? +
+ Here is the training you are eligible for in your role as +
{% endcase %}