From fe417cd6c1a7d981d896a85c71191901d353d574 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 28 May 2020 14:23:57 -0400 Subject: [PATCH] Use the separate defs for outline-page behavior --- lms/templates/dates_banner.html | 52 ++++----------------------------- 1 file changed, 5 insertions(+), 47 deletions(-) diff --git a/lms/templates/dates_banner.html b/lms/templates/dates_banner.html index b7e30f63e2..397941f7d2 100644 --- a/lms/templates/dates_banner.html +++ b/lms/templates/dates_banner.html @@ -118,53 +118,11 @@ additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' % endif % elif on_course_outline_page and (is_audit or is_verified): -
-
- % 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 - % 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 - % endif - % endif -
- % if not is_mobile_app: -
- % if is_verified: -
- - - - -
- % endif - % if is_audit: - - - - % endif -
+## The outline page uses javascript to show the dates banner, so everything below is only displayed when a user has actually missed deadlines + % if is_verified: + ${reset_dates_banner()} + % elif is_audit: + ${upgrade_to_reset_banner()} % endif -
% endif