Serve branded footer JSON/HTML/CSS/JS from an API endpoint in the branding app. Refactor OpenEdX and EdX.org footer templates to use the Python version of the API, ensuring that the API values are consistent with the footer included in main.html. Detailed changes: * Added footer API end-point to the branding app. * Footer API allows the language to be set with querystring parameters. * Footer API allows showing/hiding of the OpenEdX logo using querystring parameters. * Deprecate ENABLE_FOOTER_V3 in favor of the branding API configuration flag. * Move no referrer script into main.html from the edx footer template. * Rename rwd_header_footer.js to rwd_header.js * Cache API responses. Authors: Awais Qureshi, Aamir Khan, Will Daly
32 lines
1.1 KiB
HTML
32 lines
1.1 KiB
HTML
<%! from django.utils.translation import ugettext as _ %>
|
|
|
|
<%namespace name='static' file='../static_content.html'/>
|
|
|
|
<header class="page-header content-main">
|
|
<h3 class="title">
|
|
<% course_name_html = '<span class="sts-course-name">' + course_num + '</span>' %>
|
|
<% course_display_html = course_org + "'s " + course_num + " " + course_name %>
|
|
% if upgrade:
|
|
${_("You are upgrading your enrollment for: {course_name}").format(
|
|
course_name=course_name_html
|
|
)}
|
|
% elif reverify:
|
|
${_("You are re-verifying for: {course_name}").format(
|
|
course_name=course_name_html
|
|
)}
|
|
% elif modes_dict and "professional" in modes_dict:
|
|
${_("You are enrolling in: {course_name}").format(
|
|
course_name=course_name_html
|
|
)}
|
|
% else:
|
|
${_("Congratulations! You are now enrolled in {course_display}").format(
|
|
course_display=course_display_html
|
|
)}
|
|
% endif
|
|
</h3>
|
|
</header>
|
|
|
|
<%block name="js_extra">
|
|
<%static:js group='rwd_header'/>
|
|
</%block>
|