% if course_home_message_fragment:
${HTML(course_home_message_fragment.body_html())}
% endif
% if update_message_fragment and UNIFIED_COURSE_TAB_FLAG.is_enabled(course.id):
${HTML(update_message_fragment.body_html())}
% endif
% if outline_fragment:
${HTML(outline_fragment.body_html())}
% endif
% if course_sock_fragment:
${HTML(course_sock_fragment.body_html())}
% endif
%block>
<%static:webpack entry="CourseHome">
new CourseHome({
courseRunKey: "${course_key | n, js_escaped_string}",
resumeCourseLink: ".action-resume-course",
courseToolLink: ".course-tool-link",
goalApiUrl: "${goal_api_url | n, js_escaped_string}",
username: "${username | n, js_escaped_string}",
courseId: "${course.id | n, js_escaped_string}",
});
%static:webpack>
<%static:webpack entry="Enrollment">
new CourseEnrollment('.enroll-btn', '${course_key | n, js_escaped_string}');
%static:webpack>