<%page args="course, enrollment, show_courseware_link, cert_status, show_email_settings, course_mode_info, show_refund_option, is_paid_course, is_course_blocked" /> <%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section %> <% cert_name_short = course.cert_name_short if cert_name_short == "": cert_name_short = settings.CERT_NAME_SHORT cert_name_long = course.cert_name_long if cert_name_long == "": cert_name_long = settings.CERT_NAME_LONG billing_email = settings.PAYMENT_SUPPORT_EMAIL %> <%namespace name='static' file='../static_content.html'/>
  • % if settings.FEATURES.get('ENABLE_VERIFIED_CERTIFICATES'):
    % else:
    %endif <% course_target = reverse('info', args=[course.id.to_deprecated_string()]) %> % if show_courseware_link: % if not is_course_blocked: ${_('{course_number} {course_name} Cover Image').format(course_number=course.number, course_name=course.display_name_with_default) |h} % else: ${_('{course_number} {course_name} Cover Image').format(course_number=course.number, course_name=course.display_name_with_default) |h} % endif % else:
    ${_('{course_number} {course_name} Cover Image').format(course_number=course.number, course_name=course.display_name_with_default) | h}
    % endif % if settings.FEATURES.get('ENABLE_VERIFIED_CERTIFICATES'): % if enrollment.mode == "verified": ${_("Enrolled as: ")} ID Verified Ribbon/Badge ${_("Verified")} % elif enrollment.mode == "honor": ${_("Enrolled as: ")} ${_("Honor Code")} % elif enrollment.mode == "audit": ${_("Enrolled as: ")} ${_("Auditing")} % elif enrollment.mode == "professional": ${_("Enrolled as: ")} ${_("Professional Ed")} % endif % endif

    % if course.has_ended(): ${_("Course Completed - {end_date}").format(end_date=course.end_datetime_text("DATE_TIME"))} % elif course.has_started(): ${_("Course Started - {start_date}").format(start_date=course.start_datetime_text("DATE_TIME"))} % elif course.start_date_is_still_default: # Course start date TBD ${_("Course has not yet started")} % else: # hasn't started yet ${_("Course Starts - {start_date}").format(start_date=course.start_datetime_text("DATE_TIME"))} % endif

    ${get_course_about_section(course, 'university')}

    % if show_courseware_link: % if not is_course_blocked: ${course.display_number_with_default | h} ${course.display_name_with_default} % else: ${course.display_number_with_default | h} ${course.display_name_with_default} % endif % else: ${course.display_number_with_default | h} ${course.display_name_with_default} % endif

    % if course.may_certify() and cert_status: <%include file='_dashboard_certificate_information.html' args='cert_status=cert_status,course=course, enrollment=enrollment'/> % endif % if course_mode_info['show_upsell'] and not is_course_blocked: %endif % if is_course_blocked:

    ${_('You can no longer access this course because payment has not yet been received. you can contact the account holder to request payment, or you can')} ${_('unenroll')} ${_('for this course.')}

    %endif % if show_courseware_link: % if course.has_ended(): % if not is_course_blocked: ${_('View Archived Course')} % else: ${_('View Archived Course')} % endif % else: % if not is_course_blocked: ${_('View Course')} % else: ${_('View Course')} % endif % endif % endif % if is_paid_course and show_refund_option: ## Translators: The course's name will be added to the end of this sentence. % if not is_course_blocked: ${_('Unenroll')} % else: ${_('Unenroll')} % endif % elif is_paid_course and not show_refund_option: ## Translators: The course's name will be added to the end of this sentence. % if not is_course_blocked: ${_('Unenroll')} % else: ${_('Unenroll')} % endif % elif enrollment.mode != "verified": ## Translators: The course's name will be added to the end of this sentence. % if not is_course_blocked: ${_('Unenroll')} % else: ${_('Unenroll')} % endif % elif show_refund_option: ## Translators: The course's name will be added to the end of this sentence. % if not is_course_blocked: ${_('Unenroll')} % else: ${_('Unenroll')} % endif % else: ## Translators: The course's name will be added to the end of this sentence. % if not is_course_blocked: ${_('Unenroll')} % else: ${_('Unenroll')} % endif % endif % if show_email_settings: % if not is_course_blocked: % else: ${_('Email Settings')} % endif % endif