%namespace name='static' file='../../static_content.html'/>
<%! from django.utils.translation import ugettext as _
import json
%>
<%static:require_module module_name="js/certificates/factories/certificate_whitelist_factory" class_name="CertificateWhitelistFactory">
CertificateWhitelistFactory('${json.dumps(certificate_white_list)}', "${certificate_exception_url}");
%static:require_module>
<%page args="section_data"/>
% if not section_data['html_cert_enabled']:
${_('Example Certificates')}
${_('Generate example certificates for the course.')}
% endif
% if section_data['example_certificate_status'] is not None:
${_("Status:")}
% for cert_status in section_data['example_certificate_status']:
% if cert_status['status'] == 'started':
${_('Generating example {name} certificate').format(name=cert_status['description'])}
% elif cert_status['status'] == 'error':
${_('Error generating example {name} certificate: {error}').format(name=cert_status['description'], error=cert_status['error_reason'])}
% elif cert_status['status'] == 'success':
${_('View {name} certificate').format(name=cert_status['description'])}
% endif
% endfor
${_("Refresh Status")}
% endif
${_("Student-Generated Certificates")}
% if section_data['enabled_for_course']:
% elif section_data['can_enable_for_course']:
% else:
${_("You must successfully generate example certificates before you enable student-generated certificates.")}
${_('Enable Student-Generated Certificates')}
% endif
% if section_data['instructor_generation_enabled'] and not (section_data['enabled_for_course'] and section_data['html_cert_enabled']):
${_("Generate Certificates")}
%if settings.FEATURES.get('ENABLE_INSTRUCTOR_BACKGROUND_TASKS'):
${_("Pending Tasks")}
${_("The status for any active tasks appears in a table below.")}
%endif
% endif
${_("Certificate Exceptions")}
${_("Use this to generate certificates for users who did not pass the course but have been given an exception by the Course Team to earn a certificate.")}