%page args="course, enrollment, show_courseware_link, cert_status, show_email_settings, course_mode_info, show_refund_option" />
<%! 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:
% else:
% endif
% if settings.FEATURES.get('ENABLE_VERIFIED_CERTIFICATES'):
% if enrollment.mode == "verified":
${_("Enrolled as: ")}
${_("Verified")}
% elif enrollment.mode == "honor":
${_("Enrolled as: ")}
${_("Honor Code")}
% elif enrollment.mode == "audit":
${_("Enrolled as: ")}
${_("Auditing")}
% 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 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']:
% if waffle.flag_is_active(request, 'alternate_upsell_copy'):
${_("Document your accomplishment!")}
% else:
${_("Challenge Yourself!")}
% endif
${_("Take this course as an ID-verified student.")}
${_("You can still sign up for an ID verified {cert_name_long} for this course. If you plan to complete the whole course, it is a great way to recognize your achievement. {link_start}Learn more about the verified {cert_name_long}{link_end}.").format(link_start=''.format(marketing_link('WHAT_IS_VERIFIED_CERT')), link_end="", cert_name_long=cert_name_long)}
%endif
% if show_courseware_link:
% if course.has_ended():
${_('View Archived Course')}
% else:
${_('View Course')}
% endif
% endif
% if 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:
${_('Email Settings')}
% endif