From 2c64560989db7bb7782b73078edda75afb100ca8 Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Fri, 1 May 2020 12:04:22 -0400 Subject: [PATCH] Change edx.org theme to use program slug --- .../lms/templates/dashboard/_dashboard_course_resume.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html b/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html index 5329d60b26..7531fed65f 100644 --- a/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html +++ b/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html @@ -3,6 +3,8 @@ <%! import six from django.utils.translation import ugettext as _ + +MICROBACHELORS_SLUG = 'microbachelors' %> % if resume_button_url != '': @@ -11,7 +13,7 @@ from django.utils.translation import ugettext as _ show_coaching_consent_form = plugins.get("coaching", {}).get("show_coaching_consent_form") if related_programs and account_mfe_url != '' and show_coaching_consent_form: for program in related_programs: - if program.get('type') == 'MicroBachelors': + if program.get('type_attrs', {}).get('slug') == MICROBACHELORS_SLUG: resume_button_url = "%s/coaching_consent?next=%s" % (account_mfe_url, getattr(settings, 'LMS_ROOT_URL', '') + resume_button_url) %>