From 908c769ae342fe300e6ad217dc98f6b398843852 Mon Sep 17 00:00:00 2001 From: Harry Rein Date: Tue, 19 Dec 2017 10:23:27 -0500 Subject: [PATCH] Update entitlement card to use Change or Leave Session. LEARNER-3646 --- common/djangoapps/student/tests/test_views.py | 2 +- lms/templates/dashboard/_dashboard_course_listing.html | 2 +- lms/templates/learner_dashboard/course_card.underscore | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/djangoapps/student/tests/test_views.py b/common/djangoapps/student/tests/test_views.py index fab7988e77..21f803107e 100644 --- a/common/djangoapps/student/tests/test_views.py +++ b/common/djangoapps/student/tests/test_views.py @@ -407,7 +407,7 @@ class StudentDashboardTests(SharedModuleStoreTestCase, MilestonesTestCaseMixin): - exactly one course item, meaning it: - has an entitlement card - does NOT have a course card referencing the selected session - - an unhidden Change Session button + - an unhidden Change or Leave Session button - a related programs message """ mocked_course_overview = CourseOverviewFactory( diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index 4e07740307..83b211ea15 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -148,7 +148,7 @@ from util.course import get_link_for_about_page, get_encoded_course_sharing_utm_ % endif % if entitlement: % if not entitlement_expired_at: - + % endif % endif diff --git a/lms/templates/learner_dashboard/course_card.underscore b/lms/templates/learner_dashboard/course_card.underscore index 3c238e95b2..7293641b83 100644 --- a/lms/templates/learner_dashboard/course_card.underscore +++ b/lms/templates/learner_dashboard/course_card.underscore @@ -18,7 +18,7 @@ <% if (dateString && !is_unfulfilled_entitlement) { %> <%- dateString %> <% if (user_entitlement && !user_entitlement.expired_at && !is_unfulfilled_entitlement) { %> - + <% } %> <% } %>