From 53be3b5f3165806cef15efd99e7ce120354a92b6 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Tue, 3 May 2022 06:38:10 -0400 Subject: [PATCH] stripe updates --- ..._courses_partnertraining_index.html.liquid | 10 +- .../Stripe/_widget_achievements.html.liquid | 134 ++++++++++++++++++ 2 files changed, 139 insertions(+), 5 deletions(-) create mode 100644 NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid 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 e61b614b..8d6951ae 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 @@ -42,7 +42,6 @@ {% if show_learning_paths_section or show_events_section %}
- {% if show_learning_paths_section %}

@@ -51,17 +50,18 @@ {% include "learning_paths_index", items: learning_paths.enrolled, card_classes: learning_path_card_classes %}

{% endif %} - {% if show_events_section %}

Upcoming Events

- {% include "training_events_dashboard", card_classes: event_card_classes %} -
+ {% include "training_events_dashboard", card_classes: event_card_classes %} {% endif %} - +
Recent Achievements
+ {% include "widget_achievements" %} +
+ {% endif %} diff --git a/NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid b/NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid new file mode 100644 index 00000000..0112b0ca --- /dev/null +++ b/NP_Custom_Templates/customer_templates/Stripe/_widget_achievements.html.liquid @@ -0,0 +1,134 @@ +{% comment %} + For this widget to work you must import Slick CSS and JS +{% endcomment %} + +
+
+
+ {% if courses.enrolled.any? %} +
+ + View All + {% else %} + {% capture message %} + {% t shared.zero_state.courses.index, + key: current_school.course_vocabulary + %} + {% endcapture %} + {% include "courses_zero_state", message: message %} + {% endif %} +
+
+
+
+ + + +