From c9b2bd8426f67c91c8028dd4dc8b3d2a98bc29ab Mon Sep 17 00:00:00 2001 From: Felipe Date: Mon, 13 Dec 2021 13:57:21 -0500 Subject: [PATCH] refactor: change the pattern for show the link that redirect to sku basket --- .../lms/templates/courseware/course_about.html | 17 ++++++++++------- .../dashboard/_dashboard_course_listing.html | 10 ++++++++-- 2 files changed, 18 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..7c184d1a 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,11 @@

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

%else: @@ -241,11 +244,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..6f0bcef9 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 @@ -499,9 +499,15 @@

${_('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. +

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

%else: ## Multiple pre-requisite courses are not supported on frontend that's why we are pulling first element