%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
%>
<%namespace name='static' file='../static_content.html'/>
<%
if waffle.flag_is_active(request, 'merge_course_tabs'):
course_target = reverse('courseware', args=[course.id])
else:
course_target = reverse('info', args=[course.id])
%>
% if show_courseware_link:
% else:
% endif
% if enrollment.mode == "verified":
${_("Enrolled as: ")}
${_("ID Verified")}
% 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)}
% 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.has_ended() and cert_status and not enrollment.mode == 'audit':
<%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 certificate for this course. If you plan to complete the whole course, it is a great way to recognize your achievement. {a_start}Learn more about verified certificates{a_end}.").format(a_start=''.format(marketing_link('WHAT_IS_VERIFIED_CERT')), a_end="")}
%endif
% if show_courseware_link:
% if course.has_ended():
${_('View Archived Course')}
% else:
${_('View Course')}
% endif
% endif
% if enrollment.mode != "verified":
${_('Unregister')}
% elif show_refund_option:
${_('Unregister')}
% else:
${_('Unregister')}
% endif
% if show_email_settings:
${_('Email Settings')}
% endif