From db5214b2168fee13398871550e1abd72afa2be93 Mon Sep 17 00:00:00 2001 From: Nicholas D'Alfonso Date: Mon, 3 Aug 2020 11:06:56 -0400 Subject: [PATCH] AA-264 mfe courseware reset dates --- lms/templates/dates_banner.html | 45 ++++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/lms/templates/dates_banner.html b/lms/templates/dates_banner.html index 25f4a14735..34c382711d 100644 --- a/lms/templates/dates_banner.html +++ b/lms/templates/dates_banner.html @@ -9,13 +9,13 @@ from course_modes.models import CourseMode %> <% -additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' +additional_styling_class = 'on-mobile' if is_mobile_app and not is_learning_mfe else 'has-button' %> <%def name="reset_dates_banner()">
- % if is_mobile_app: + % if is_mobile_app and not is_learning_mfe: ${_('It looks like you missed some important deadlines based on our suggested schedule. ')} ${_('To keep yourself on track, you can update this schedule and shift the past due assignments into the future by visiting ')} edx.org. @@ -25,22 +25,29 @@ additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' ${_("To keep yourself on track, you can update this schedule and shift the past due assignments into the future. Don't worry—you won't lose any of the progress you've made when you shift your due dates.")} % endif
- % if not is_mobile_app: -
-
- - - - -
-
+ % if not is_mobile_app or is_learning_mfe: + % if is_learning_mfe: +
+ +
+ % else: +
+
+ + + + + +
+
+ % endif % endif
<%def name="upgrade_to_reset_banner()">
- % if is_mobile_app: + % if is_mobile_app and not is_learning_mfe: ${_('You are auditing this course,')} ${_(' which means that you are unable to participate in graded assignments.')} ${_(' It looks like you missed some important deadlines based on our suggested schedule. Graded assignments and schedule adjustment are available to Verified Track learners.')} @@ -50,7 +57,7 @@ additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' ${_(' It looks like you missed some important deadlines based on our suggested schedule. To complete graded assignments as part of this course and shift the past due assignments into the future, you can upgrade today.')} % endif
- % if not is_mobile_app: + % if not is_mobile_app or is_learning_mfe: