<%page args="course, enrollment, show_courseware_link, cert_status, show_email_settings, course_mode_info, show_refund_option, is_paid_course" /> <%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse from courseware.courses import course_image_url, get_course_about_section import waffle %> <% 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: ${_('{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 % 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_date_text)} % elif course.has_started(): ${_("Course Started - {start_date}").format(start_date=course.start_date_text)} % 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_date_text)} % endif

    ${get_course_about_section(course, 'university')}

    % if show_courseware_link: ${course.display_number_with_default | h} ${course.display_name_with_default} % 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']: %endif % if show_courseware_link: % if course.has_ended(): ${_('View Archived Course')} % else: ${_('View Course')} % endif % endif % if is_paid_course and show_refund_option: ## Translators: The course's name will be added to the end of this sentence. ${_('Unregister')} % elif is_paid_course and not show_refund_option: ## Translators: The course's name will be added to the end of this sentence. ${_('Unregister')} % elif enrollment.mode != "verified": ## Translators: The course's name will be added to the end of this sentence. ${_('Unregister')} % elif show_refund_option: ## Translators: The course's name will be added to the end of this sentence. ${_('Unregister')} % else: ## Translators: The course's name will be added to the end of this sentence. ${_('Unregister')} % endif % if show_email_settings: % endif