diff --git a/lms/templates/dates_banner.html b/lms/templates/dates_banner.html index 871a685f02..b7e30f63e2 100644 --- a/lms/templates/dates_banner.html +++ b/lms/templates/dates_banner.html @@ -28,53 +28,63 @@ on_courseware_page_as_audit = on_courseware_page and is_audit on_courseware_page_as_verified = on_courseware_page and is_verified additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' %> -% if (missed_deadlines and (on_dates_tab_as_verified or on_courseware_page)): + +<%def name="reset_dates_banner()">
- % if is_mobile_app: - % if is_verified: - ${_('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. - ${_(' Don’t worry—you won’t lose any of the progress you’ve made when you shift your due dates.')} - % else: - ${_('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. To complete graded assignments as part of this course and shift the past due assignments into the future, you can upgrade today by visiting ')} - edx.org. - % endif + % if is_mobile_app: + ${_('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. + ${_(' Don’t worry—you won’t lose any of the progress you’ve made when you shift your due dates.')} % else: - % if is_verified: - ${_('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. Don’t worry—you won’t lose any of the progress you’ve made when you shift your due dates.')} - % endif - % if is_audit: - ${_('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. To complete graded assignments as part of this course and shift the past due assignments into the future, you can upgrade today.')} - % endif + ${_('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. 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 is_verified: -
- - - - -
- % endif - % if is_audit: - - - - % endif +
+ + + + +
% endif
+ +<%def name="upgrade_to_reset_banner()"> +
+
+ % if is_mobile_app: + ${_('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. To complete graded assignments as part of this course and shift the past due assignments into the future, you can upgrade today by visiting ')} + edx.org. + % else: + ${_('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. 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: +
+ + + +
+ % endif +
+ +% if (missed_deadlines and (on_dates_tab_as_verified or on_courseware_page)): + % if is_verified: + ${reset_dates_banner()} + % elif is_audit: + ${upgrade_to_reset_banner()} + % endif % elif on_dates_tab_as_audit and has_locked_assignments: