<%! from django.utils.translation import ugettext as _ %> <%! from django.template.defaultfilters import escapejs %> <%! from microsite_configuration import page_title_breadcrumbs %> <%! from edxnotes.helpers import is_feature_enabled as is_edxnotes_enabled %> <%inherit file="/main.html" /> <%namespace name='static' file='/static_content.html'/> <%def name="course_name()"> <% return _("{course_number} Courseware").format(course_number=course.display_number_with_default) %> <%block name="bodyclass">courseware ${course.css_class or ''} <%block name="title"> % if section_title: ${page_title_breadcrumbs(section_title, course_name())} % else: ${page_title_breadcrumbs(course_name())} %endif <%block name="header_extras"> % for template_name in ["image-modal"]: % endfor % for template_name in ["search_item", "search_item_seq", "search_list", "search_loading", "search_error"]: % endfor <%block name="headextra"> <%static:css group='style-course-vendor'/> <%static:css group='style-course'/> ## Utility: Notes % if is_edxnotes_enabled(course): <%static:css group='style-student-notes'/> % endif <%block name="nav_skip">${"#seq_content" if section_title else "#course-content"} <%include file="../discussion/_js_head_dependencies.html" /> % if show_chat: ## It'd be better to have this in a place like lms/css/vendor/candy, ## but the candy_res/ folder contains images and other junk, and it ## all needs to stay together for the Candy.js plugin to work. % endif ${fragment.head_html()} <%block name="js_extra"> ## codemirror <%static:js group='courseware'/> <%static:js group='discussion'/> <%include file="../discussion/_js_body_dependencies.html" /> % if staff_access: <%include file="xqa_interface.html"/> % endif % if show_chat: % endif ${fragment.foot_html()} <%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" /> % if default_tab: <%include file="/courseware/course_navigation.html" /> % else: <%include file="/courseware/course_navigation.html" args="active_page='courseware'" /> % endif
% if disable_accordion is UNDEFINED or not disable_accordion: % endif
% 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(course.entrance_exam_minimum_score_pct * 100), current_score=int(entrance_exam_current_score * 100) )}

% else:

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

% endif % endif ${fragment.body_html()}
% if settings.FEATURES.get('ENABLE_COURSEWARE_SEARCH'):
% endif
<%include file="../modal/accessible_confirm.html" />