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) { %> - + <% } %> <% } %>