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
56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
<%!
|
|
from django.utils.translation import ugettext as _
|
|
%>
|
|
<%namespace name='static' file='../static_content.html'/>
|
|
|
|
<%inherit file="../main.html" />
|
|
<%block name="bodyclass">register verification-process step-requirements</%block>
|
|
|
|
<%block name="pagetitle">
|
|
${_("Receipt")}
|
|
</%block>
|
|
|
|
<%block name="header_extras">
|
|
<script type="text/template" id="receipt-tpl">
|
|
<%static:include path="commerce/receipt.underscore" />
|
|
</script>
|
|
|
|
</%block>
|
|
<%block name="js_extra">
|
|
<%static:js group='rwd_header'/>
|
|
<script src="${static.url('js/vendor/jquery.ajax-retry.js')}"></script>
|
|
<script src="${static.url('js/vendor/underscore-min.js')}"></script>
|
|
<script src="${static.url('js/vendor/underscore.string.min.js')}"></script>
|
|
<script src="${static.url('js/vendor/backbone-min.js')}"></script>
|
|
<script src="${static.url('js/src/tooltip_manager.js')}"></script>
|
|
<script src="${static.url('js/commerce/views/receipt_view.js')}"></script>
|
|
</%block>
|
|
|
|
<%block name="content">
|
|
<div id="error-container" class="hidden">
|
|
<div id="error" class="wrapper-msg wrapper-msg-activate">
|
|
<div class=" msg msg-activate">
|
|
<i class="msg-icon icon fa fa-exclamation-triangle" aria-hidden="true"></i>
|
|
<div class="msg-content">
|
|
<h3 class="title">
|
|
<span class="sr">${ _("Error:") }</span>
|
|
${ _("Error") }
|
|
</h3>
|
|
<div class="copy">
|
|
<p>${ _("Could not retrieve payment information") }</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<section class="wrapper carousel">
|
|
<div id="receipt-container" class="pay-and-verify" data-platform-name='${platform_name}' data-verified='${verified}'>
|
|
<h1>${_("Loading Order Data...")}</h1>
|
|
<span>${ _("Please wait while we retrieve your order details.") }</span>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</%block>
|