From ea5a6eafc314c307fdad7339c87a5a0ac3cb0442 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 10 Feb 2025 15:11:47 -0500 Subject: [PATCH] Buildertrend templates backedup after their team made some changes. --- .../BuilderTrend External/.DS_Store | Bin 0 -> 6148 bytes .../_cards_course.html.liquid | 27 +- .../_cards_learning_path.html.liquid | 40 +- .../_course_header.html.liquid | 61 ++- .../_learning_path_desktop_header.html.liquid | 41 +- .../_learning_paths_index.html.liquid | 44 +- .../_main_hero_masthead.html.liquid | 6 +- .../bla-test.html.liquid | 423 ++++++++++++++++++ .../BuilderTrend External/catalog.html.liquid | 4 +- .../BuilderTrend External/styles.css.liquid | 6 +- .../testing-page.html.liquid | 136 ++++++ 11 files changed, 750 insertions(+), 38 deletions(-) create mode 100644 Custom_Templates/customer_templates/BuilderTrend External/.DS_Store create mode 100644 Custom_Templates/customer_templates/BuilderTrend External/bla-test.html.liquid create mode 100644 Custom_Templates/customer_templates/BuilderTrend External/testing-page.html.liquid diff --git a/Custom_Templates/customer_templates/BuilderTrend External/.DS_Store b/Custom_Templates/customer_templates/BuilderTrend External/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 -
{{ activity_count }}
Activities
+ {% assign totduration = course.properties.duration %} + {% assign strduration = "" %} + {% if totduration >= 60 %} + {% assign hour = totduration | divided_by: 60 %} + {% assign hourfloat = totduration | times: 1.0 | divided_by: 60 %} + {% assign min = hourfloat | minus: hour %} + {% assign min = min | times: 60 %} + {% assign min = min | floor %} + {% if hour == 1 and min > 0 %} + {% assign strduration = hour | append: ' hour ' | append: min | append: " mins" %} + {% elsif hour > 1 and min > 0 %} + {% assign strduration = hour | append: ' hours ' | append: min | append: " mins" %} + {% elsif hour > 1 and min <= 0 %} + {% assign strduration = hour | append: ' hours' %} + {% elsif hour == 1 and min <= 0 %} + {% assign strduration = hour | append: ' hour' %} + {% endif %} + {% elsif totduration > 0 %} + {% assign strduration = totduration | append: " mins" %} + {% endif %} +
+
{{ activity_count }}
Activities
+ {% if strduration != "" %} +
{{ strduration }}
Duration
+ {% endif %} +

{{ course.name }} diff --git a/Custom_Templates/customer_templates/BuilderTrend External/_cards_learning_path.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/_cards_learning_path.html.liquid index 6c084f24..75790084 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/_cards_learning_path.html.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/_cards_learning_path.html.liquid @@ -2,11 +2,43 @@
- - - {{ learning_path.items.count }} {% t .items %} + + {% assign totduration = 0 %} + {% for item in learning_path.items %} + {% if item.course? %} + {% assign course = courses.in_catalog | where: "id", item.id %} + {% unless course == empty %} + {% assign duration = course.first.properties.duration %} + {% assign totduration = totduration | plus: duration %} + {% endunless %} + {% endif %} + {% endfor %} + {% assign strduration = "" %} + {% if totduration >= 60 %} + {% assign hour = totduration | divided_by: 60 %} + {% assign hourfloat = totduration | times: 1.0 | divided_by: 60 %} + {% assign min = hourfloat | minus: hour %} + {% assign min = min | times: 60 %} + {% assign min = min | floor %} + {% if hour == 1 and min > 0 %} + {% assign strduration = hour | append: ' hour ' | append: min | append: " mins" %} + {% elsif hour > 1 and min > 0 %} + {% assign strduration = hour | append: ' hours ' | append: min | append: " mins" %} + {% elsif hour > 1 and min <= 0 %} + {% assign strduration = hour | append: ' hours' %} + {% elsif hour == 1 and min <= 0 %} + {% assign strduration = hour | append: ' hour' %} + {% endif %} + {% elsif totduration > 0 %} + {% assign strduration = totduration | append: " mins" %} + {% endif %} + + {{ learning_path.items.count }} {% t .items %} + + + {{ strduration }} + - {{ learning_path.name }}
diff --git a/Custom_Templates/customer_templates/BuilderTrend External/_course_header.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/_course_header.html.liquid index b31dedd4..7752148b 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/_course_header.html.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/_course_header.html.liquid @@ -11,7 +11,33 @@ {{ course.name }}
-
{{ activity_count }}
Activities
+ {% assign totduration = course.properties.duration %} + {% assign strduration = "" %} + {% if totduration >= 60 %} + {% assign hour = totduration | divided_by: 60 %} + {% assign hourfloat = totduration | times: 1.0 | divided_by: 60 %} + {% assign min = hourfloat | minus: hour %} + {% assign min = min | times: 60 %} + {% assign min = min | floor %} + {% if hour == 1 and min > 0 %} + {% assign strduration = hour | append: ' hour ' | append: min | append: " mins" %} + {% elsif hour > 1 and min > 0 %} + {% assign strduration = hour | append: ' hours ' | append: min | append: " mins" %} + {% elsif hour > 1 and min <= 0 %} + {% assign strduration = hour | append: ' hours' %} + {% elsif hour == 1 and min <= 0 %} + {% assign strduration = hour | append: ' hour' %} + {% endif %} + {% elsif totduration > 0 %} + {% assign strduration = totduration | append: " mins" %} + {% endif %} +
+
{{ activity_count }}
Activities
+ {% if strduration != "" %} +
{{ strduration }}
Duration
+ {% endif %} +
+

@@ -31,7 +57,33 @@ {{ course.name }}
-
{{ activity_count }}
Activities
+ {% assign totduration = course.properties.duration %} + {% assign strduration = "" %} + {% if totduration >= 60 %} + {% assign hour = totduration | divided_by: 60 %} + {% assign hourfloat = totduration | times: 1.0 | divided_by: 60 %} + {% assign min = hourfloat | minus: hour %} + {% assign min = min | times: 60 %} + {% assign min = min | floor %} + {% if hour == 1 and min > 0 %} + {% assign strduration = hour | append: ' hour ' | append: min | append: " mins" %} + {% elsif hour > 1 and min > 0 %} + {% assign strduration = hour | append: ' hours ' | append: min | append: " mins" %} + {% elsif hour > 1 and min <= 0 %} + {% assign strduration = hour | append: ' hours' %} + {% elsif hour == 1 and min <= 0 %} + {% assign strduration = hour | append: ' hour' %} + {% endif %} + {% elsif totduration > 0 %} + {% assign strduration = totduration | append: " mins" %} + {% endif %} +
+
{{ activity_count }}
Activities
+ {% if strduration != "" %} +
{{ strduration }}
Duration
+ {% endif %} +
+
@@ -51,10 +103,13 @@ .np-course-header{ padding-right: 132px; } - .card-activity-count { + + + .card-activity-duration { padding-left: 42px; padding-top: 32px; padding-bottom: 0; margin-top: 0; + width: 30%; } \ No newline at end of file diff --git a/Custom_Templates/customer_templates/BuilderTrend External/_learning_path_desktop_header.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/_learning_path_desktop_header.html.liquid index 355642b6..1cbdc04d 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/_learning_path_desktop_header.html.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/_learning_path_desktop_header.html.liquid @@ -6,7 +6,41 @@ {{ learning_path.name }}
-
{{ learning_path.items.size }}
Items
+ {% assign totduration = 0 %} + {% for item in learning_path.items %} + {% if item.course? %} + {% assign course = courses.in_catalog | where: "id", item.id %} + {% unless course == empty %} + {% assign duration = course.first.properties.duration %} + {% assign totduration = totduration | plus: duration %} + {% endunless %} + {% endif %} + {% endfor %} + {% assign strduration = "" %} + {% if totduration >= 60 %} + {% assign hour = totduration | divided_by: 60 %} + {% assign hourfloat = totduration | times: 1.0 | divided_by: 60 %} + {% assign min = hourfloat | minus: hour %} + {% assign min = min | times: 60 %} + {% assign min = min | round %} + {% if hour == 1 and min > 0 %} + {% assign strduration = hour | append: ' hour ' | append: min | append: " mins" %} + {% elsif hour > 1 and min > 0 %} + {% assign strduration = hour | append: ' hours ' | append: min | append: " mins" %} + {% elsif hour > 1 and min <= 0 %} + {% assign strduration = hour | append: ' hours' %} + {% elsif hour == 1 and min <= 0 %} + {% assign strduration = hour | append: ' hour' %} + {% endif %} + {% elsif totduration > 0 %} + {% assign strduration = totduration | append: " mins" %} + {% endif %} +
+
{{ learning_path.items.size }}
Items
+ {% if strduration != "" %} +
{{ strduration }}
Duration
+ {% endif %} +
@@ -29,10 +63,13 @@ .np-icon-back { color: #202227; } - .card-activity-count { + .card-activity-duration { padding-left: 42px; padding-top: 32px; padding-bottom: 0; margin-top: 0; + display: flex; + justify-content: space-between; + width: 30%; } \ No newline at end of file diff --git a/Custom_Templates/customer_templates/BuilderTrend External/_learning_paths_index.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/_learning_paths_index.html.liquid index 970cffa8..e5eaabd1 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/_learning_paths_index.html.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/_learning_paths_index.html.liquid @@ -1,43 +1,43 @@
- + {% assign isLPProgressHeader = false %} - {% for learning_path in learning_paths.enrolled %} - {% if learning_path.progress > 0 and learning_path.progress < 100 %} - {% if isLPProgressHeader == false %} + {% for learning_path in learning_paths.enrolled %} + {% if learning_path.progress > 0 and learning_path.progress < 100 %} + {% if isLPProgressHeader == false %}
In progress
{% assign isLPProgressHeader = true %} - {% endif %} + {% endif %}
- {% include "cards_learning_path" with learning_path %} -
- {% endif %} - {% endfor %} -
+ {% include "cards_learning_path" with learning_path %} +
+ {% endif %} + {% endfor %} +
Learning paths
{% for learning_path in items %} - {% if learning_path.progress == 0 %} + {% if learning_path.progress == 0 %}
- {% include "cards_learning_path" with learning_path %} -
- {% endif %} + {% include "cards_learning_path" with learning_path %} +
+ {% endif %} {% endfor %} - +
{% assign isLPCompletedHeader = false %} {% for learning_path in items %} - {% if learning_path.progress == 100 %} - {% if isLPCompletedHeader == false %} -
Completed learning paths
- {% assign isLPCompletedHeader = true %} + {% if learning_path.progress == 100 %} + {% if isLPCompletedHeader == false %} +
Completed learning paths
+ {% assign isLPCompletedHeader = true %} {% endif %}
- {% include "cards_learning_path" with learning_path %} -
- {% endif %} + {% include "cards_learning_path" with learning_path %} +
+ {% endif %} {% endfor %} diff --git a/Custom_Templates/customer_templates/BuilderTrend External/_main_hero_masthead.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/_main_hero_masthead.html.liquid index 14154bb3..610b59d4 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/_main_hero_masthead.html.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/_main_hero_masthead.html.liquid @@ -19,9 +19,9 @@
In-Person Training

Buildertrend University: deep dive our software at our headquarters

-

January 8–9, 2025
January 29–30, 2025

- -

See all sessions

+

March 26-27, 2025

+ +

See all sessions

diff --git a/Custom_Templates/customer_templates/BuilderTrend External/bla-test.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/bla-test.html.liquid new file mode 100644 index 00000000..bd53bb16 --- /dev/null +++ b/Custom_Templates/customer_templates/BuilderTrend External/bla-test.html.liquid @@ -0,0 +1,423 @@ +{% include "header" %} +{% include "course_version_outdated_alert", courses: courses.featured %} +{% assign strquizCategories = current_person.properties.qiuz_answers | strip %} +{% assign quizCategories = current_person.properties.qiuz_answers | split: "_" %} +{% assign coursesToDisplay = "" %} +{% assign lpsToDisplay = "" %} + +{% for course in courses.in_catalog %} + {% for cats in course.categories %} + {% if cats.name contains "[Quiz]" %} + {% assign catname = cats.name | remove: "[Quiz] " %} + {% for qc in quizCategories %} + {% if catname == qc %} + {% assign coursesToDisplay = coursesToDisplay | append: course.id | append: ";" %} + {% endif %} + {% endfor %} + {% endif %} + {% endfor %} +{% endfor %} +{% assign coursesToDisplayArr = coursesToDisplay | split: ";" %} +{% assign uniqcoursesToDisplayArr = coursesToDisplayArr | uniq %} + + + +{% for learningpath in learning_paths.available %} + {% for lpcats in learningpath.categories %} + {% if lpcats.name contains "[Quiz]" %} + {% assign catname = lpcats.name | remove: "[Quiz] " %} + {% for qc in quizCategories %} + {% if catname == qc %} + {% assign lpsToDisplay = lpsToDisplay | append: learningpath.id | append: ";" %} + {% endif %} + {% endfor %} + {% endif %} + {% endfor %} +{% endfor %} +{% assign lpsToDisplayArr = lpsToDisplay | split: ";" %} +{% assign uniqlpsToDisplayArr = lpsToDisplayArr | uniq %} + + +
+ + {% include "main_hero_masthead" %} + {% include "sub_navigation" %} + + + {% if strquizCategories == "" %} + +
+
+
+ {% assign isLPInprogress = false %} + {% for learning_path in learning_paths.enrolled %} + {% if learning_path.progress > 0 and learning_path.progress < 100 %} + {% assign isLPInprogress = true %} +
+ {% include "cards_learning_path" with learning_path %} +
+ {% endif %} + {% endfor %} +
+
+
+ +
+ + {% if training_events.available.any? %} + +
+ {% for training_event in training_events.available limit:3 %} +
+ {% include "cards_training_event" with training_event %} +
+ {% endfor %} +
+ {% else %} + {% include "training_events_zero_state" %} + {% endif %} +
+
+ +
+
+ {% assign startwithlearning_path = learning_paths.available | where: "id", "04575709-6d99-41bb-9014-6e7def46a320" %} + {% for learning_path in startwithlearning_path %} +
+ {% include "cards_learning_path" with learning_path %} +
+ {% endfor %} +
+
+
+ {% else %} + +
+
+
+ {% assign isLPInprogress = false %} + {% for learning_path in learning_paths.enrolled %} + {% if learning_path.progress > 0 and learning_path.progress < 100 %} + {% assign isLPInprogress = true %} +
+ {% include "cards_learning_path" with learning_path %} +
+ {% endif %} + {% endfor %} +
+
+
+
+ + {% if training_events.available.any? %} +
+ {% for training_event in training_events.available limit:3 %} +
+ {% include "cards_training_event" with training_event %} +
+ {% endfor %} +
+ {% else %} + {% include "training_events_zero_state" %} + {% endif %} +
+ +
+ +
+
+
+ {% for lpsid in uniqlpsToDisplayArr %} + {% assign displayLps = learning_paths.available | where: "id", lpsid %} + {% for learning_path in displayLps %} +
+ {% include "cards_learning_path" with learning_path %} +
+ {% endfor %} + {% endfor %} +
+
+
+
+ {% endif %} +
+
Interested in in-person training?
+
+ +
+

Buildertrend

+
+
+ +
+{% include "footer" %} + + \ No newline at end of file diff --git a/Custom_Templates/customer_templates/BuilderTrend External/catalog.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/catalog.html.liquid index 51b06c9c..6c8fe912 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/catalog.html.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/catalog.html.liquid @@ -19,7 +19,7 @@
{% assign isCoursesInprogress = false %} {% assign isProgressHeaderOutput = false %} - {% for course in courses.featured %} + {% for course in courses.in_catalog %} {% unless course.has_certificate? %} {% if course.progress > 0 and course.progress < 100 %} {% if isProgressHeaderOutput == false %} @@ -60,7 +60,7 @@
{% assign isCoursesCompleted = false %} {% assign isCourseHeaderOutput = false %} - {% for course in courses.featured %} + {% for course in courses.in_catalog %} {% unless course.has_certificate? %} {% if course.progress == 100 %} {% if isCourseHeaderOutput == false %} diff --git a/Custom_Templates/customer_templates/BuilderTrend External/styles.css.liquid b/Custom_Templates/customer_templates/BuilderTrend External/styles.css.liquid index 604dfe2b..bc69fdf4 100644 --- a/Custom_Templates/customer_templates/BuilderTrend External/styles.css.liquid +++ b/Custom_Templates/customer_templates/BuilderTrend External/styles.css.liquid @@ -117,14 +117,18 @@ main.np-catalog, main.np-homepage, main.catalog, main.np-training-events, main.n border-radius: 5px; box-shadow: 2px 2px 20px 0px rgba(98, 98, 98, 0.25); } -.card-activity-count{ +.card-activity-duration { padding-left: 14px; + padding-right: 14px; + display: flex; + justify-content: space-between; margin-top: -70px; padding-bottom: 35px; font-family: 'GT WALSHEIM'; color: #666D7C; font-weight: 700; font-size: 18px; + } .activity-label{ font-size: 16px; diff --git a/Custom_Templates/customer_templates/BuilderTrend External/testing-page.html.liquid b/Custom_Templates/customer_templates/BuilderTrend External/testing-page.html.liquid new file mode 100644 index 00000000..13013942 --- /dev/null +++ b/Custom_Templates/customer_templates/BuilderTrend External/testing-page.html.liquid @@ -0,0 +1,136 @@ +{% include "header" %} + +
+

{{ custom_page.headline }}

+

{{ custom_page.subheadline }}

+ + +
+ {% if courses.enrolled.any? %} +
+ {% for course in courses.enrolled %} +
+ {% include "cards_course" with course %} +
+ {% endfor %} +
+ {% else %} + {% capture message %} + {% t shared.zero_state.courses.index, + key: current_school.course_vocabulary + %} + {% endcapture %} + {% include "courses_zero_state", message: message %} + {% endif %} +

Second Piece

+ {% assign isCoursesCompleted = false %} + {% assign isCourseHeaderOutput = false %} + {% for course in courses.in_catalog %} + {% unless course.has_certificate? %} + {% if course.progress == 100 %} + {% if isCourseHeaderOutput == false %} +
Completed courses
+ {% assign isCourseHeaderOutput = true %} + {% endif %} +
+ {% include "cards_course" with course %} +
+ {% assign isCoursesCompleted = true %} + {% endif %} + {% endunless %} + {% endfor %} + + +
+ + +
+{% include "footer" %} + \ No newline at end of file