% if getattr(course, 'entrance_exam_enabled') and \ getattr(course, 'entrance_exam_minimum_score_pct') and \ entrance_exam_current_score is not UNDEFINED: % if not entrance_exam_passed:

${_('To access course materials, you must score {required_score}% or higher on this \ exam. Your current score is {current_score}%.').format( required_score=int(round(course.entrance_exam_minimum_score_pct * 100)), current_score=int(round(entrance_exam_current_score * 100)) )}

% else:

${_('Your score is {current_score}%. You have passed the entrance exam.').format( current_score=int(round(entrance_exam_current_score * 100)) )}

% endif % endif ${fragment.body_html()}