<%page args="cert_status, course, enrollment" /> <%! from django.utils.translation import ugettext as _ %> <% if cert_status['status'] == 'generating': status_css_class = 'course-status-certrendering' elif cert_status['status'] == 'ready': status_css_class = 'course-status-certavailable' elif cert_status['status'] == 'notpassing': status_css_class = 'course-status-certnotavailable' else: status_css_class = 'course-status-processing' %>
% if course.may_certify() and cert_status['status'] == 'processing':

${_("Your final standing is unrequested or unavailable at this time.")}

% elif cert_status['status'] == 'processing':

${_("Final course details are being wrapped up at this time. Your final standing will be available shortly.")}

% elif cert_status['status'] in ('generating', 'ready', 'notpassing', 'restricted'):

${_("Your final grade:")} ${"{0:.0f}%".format(float(cert_status['grade'])*100)}. % if cert_status['status'] == 'notpassing' and enrollment.mode != 'audit': ${_("Grade required for a statement of accomplishment:")} ${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}. % elif cert_status['status'] == 'restricted' and enrollment.mode == 'verified':

${_("Your verified statement of accomplishment is being held pending confirmation that the issuance of your statement of accomplishment is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}. If you would like a refund on your statement of accomplishment, please contact our billing address {billing_email}").format(email='{email}.'.format(email=settings.CONTACT_EMAIL), billing_email='{email}'.format(email=settings.PAYMENT_SUPPORT_EMAIL))}

% elif cert_status['status'] == 'restricted':

${_("Your statement of accomplishment is being held pending confirmation that the issuance of your statement of accomplishment is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}.").format(email='{email}.'.format(email=settings.CONTACT_EMAIL))}

% endif

% endif % if cert_status['show_disabled_download_button'] or cert_status['show_download_url'] or cert_status['show_survey_button']: % endif