From 28aedc7cde7e2aadb5c0a0827063b09d7055edd2 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 28 May 2020 11:55:10 -0400 Subject: [PATCH] Remove redundant conditions in the second clause of dates_banner.html --- lms/templates/dates_banner.html | 71 ++++++++++----------------------- 1 file changed, 20 insertions(+), 51 deletions(-) diff --git a/lms/templates/dates_banner.html b/lms/templates/dates_banner.html index d331b2e36b..813113a172 100644 --- a/lms/templates/dates_banner.html +++ b/lms/templates/dates_banner.html @@ -75,66 +75,35 @@ additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' % endif -% elif (on_dates_tab_as_audit and has_locked_assignments): +% elif on_dates_tab_as_audit and has_locked_assignments:
% 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 + ${_('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: - % if on_course_outline_page_as_verified or (missed_deadlines and (on_dates_tab_as_verified or on_courseware_page_as_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 (on_dates_tab_as_audit and has_locked_assignments) or on_course_outline_page_as_audit or (on_courseware_page_as_audit and missed_deadlines): - ${_('You are auditing this course,')} - ${_(' which means that you are unable to participate in graded assignments.')} - % if on_dates_tab: - % if missed_deadlines: - ${_(' 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.')} - % else: - ${_(' To complete graded assignments as part of this course, you can upgrade today.')} - % endif - % else: - ${_(' 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 + ${_('You are auditing this course,')} + ${_(' which means that you are unable to participate in graded assignments.')} + % if missed_deadlines: + ${_(' 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.')} + % else: + ${_(' To complete graded assignments as part of this course, you can upgrade today.')} % endif % endif
% if not is_mobile_app:
- % if on_course_outline_page_as_verified or (missed_deadlines and (on_dates_tab_as_verified or on_courseware_page_as_verified)): -
- - - - -
- % endif: - % if (on_dates_tab_as_audit and has_locked_assignments) or on_course_outline_page_as_audit or (on_courseware_page_as_audit and missed_deadlines): - - - - % endif + + +
% endif