From 8bbe3fbf6e49260d9ecbf6533c619aeb92ead86b Mon Sep 17 00:00:00 2001 From: Felipe Date: Thu, 16 Dec 2021 11:29:29 -0500 Subject: [PATCH] refactor: fix behavior to redirect to sku basket in the course about and dashboard --- .../lms/templates/courseware/course_about.html | 14 +++++++------- .../dashboard/_dashboard_course_listing.html | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html b/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html index f6eff30d..9cb96d21 100644 --- a/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html +++ b/edx-platform/pearson-pathways-theme/lms/templates/courseware/course_about.html @@ -229,8 +229,8 @@

- You must successfully complete ${Text(_("{prc_display}")).format( - prc_display=course_requirements['display'])} before you begin this course. + You must successfully complete + ${Text(_("{prc_display}")).format(prc_display=course_requirements['display'])} before you begin this course.

%else: @@ -241,11 +241,11 @@

## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element ${course_requirements['display']}

- ${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( - link_start=HTML('').format(prc_target), - link_end=HTML(''), - prc_display=course_requirements['display'], - )} + ${Text(_("You must successfully complete {link_start}{prc_display}{link_end} before you begin this course.")).format( + link_start=HTML('').format(prc_target), + link_end=HTML(''), + prc_display=course_requirements['display'], + )}

%endif diff --git a/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html b/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html index 9726d69e..d4b1d5c3 100644 --- a/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html +++ b/edx-platform/pearson-pathways-theme/lms/templates/dashboard/_dashboard_course_listing.html @@ -500,8 +500,8 @@

${_('Your current verification will expire soon.')} - You must successfully complete ${Text(_("{prc_display}")).format( - prc_display=course_requirements['courses'][0]['display'])} before you begin this course. + You must successfully complete + ${Text(_("{prc_display}")).format(prc_display=course_requirements['courses'][0]['display'],)} before you begin this course. %else: ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element