## mako <%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ from lms.djangoapps.courseware.date_summary import CourseAssignmentDate from course_modes.models import CourseMode %> % if on_dates_tab and not missed_deadlines and getattr(course, 'self_paced', False):
${_("We've built a suggested schedule to help you stay on track.")} ${_("But don't worry—it's flexible so you can learn at your own pace. If you happen to fall behind on our suggested dates, you'll be able to adjust them to keep yourself on track.")}
% endif <% additional_styling_class = 'on-mobile' if is_mobile_app else 'has-button' %> <%def name="reset_dates_banner()">
% 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: ${_('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:
% 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. Graded assignments and schedule adjustment are available to Verified Track learners.')} % 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
<%def name="upgrade_to_complete_graded_banner()">
% if is_mobile_app: ${_('You are auditing this course,')} ${_(' which means that you are unable to participate in graded assignments.')} ${_('Graded assignments are available to Verified Track learners.')} % else: ${_('You are auditing this course,')} ${_(' which means that you are unable to participate in graded assignments.')} ${_(' To complete graded assignments as part of this course, you can upgrade today.')} % endif
% if not is_mobile_app:
% endif
% if on_dates_tab and content_type_gating_enabled and not missed_deadlines: ${upgrade_to_complete_graded_banner()} % elif missed_deadlines: % if content_type_gating_enabled: ${upgrade_to_reset_banner()} % else: ${reset_dates_banner()} % endif % endif