From 908c769ae342fe300e6ad217dc98f6b398843852 Mon Sep 17 00:00:00 2001 From: Harry Rein <hrein@edx.org> 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 fab7988e775..21f803107e5 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 4e077403072..83b211ea158 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: - <button class="change-session btn-link ${'hidden' if is_unfulfilled_entitlement else ''}" aria-controls="change-session-${str(entitlement.uuid)}">${_('Change Session')}</button> + <button class="change-session btn-link ${'hidden' if is_unfulfilled_entitlement else ''}" aria-controls="change-session-${str(entitlement.uuid)}">${_('Change or Leave Session')}</button> % endif % endif </span> diff --git a/lms/templates/learner_dashboard/course_card.underscore b/lms/templates/learner_dashboard/course_card.underscore index 3c238e95b2c..7293641b837 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) { %> <span class="run-period"><%- dateString %></span> <% if (user_entitlement && !user_entitlement.expired_at && !is_unfulfilled_entitlement) { %> - <button class="change-session btn-link" aria-controls="change-session-<%-user_entitlement.uuid%>"> <%- gettext('Change Session')%></button> + <button class="change-session btn-link" aria-controls="change-session-<%-user_entitlement.uuid%>"> <%- gettext('Change or Leave Session')%></button> <% } %> <% } %> </div> -- GitLab