Fix violations with n filter.
This commit is contained in:
@@ -45,7 +45,7 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<div class="api-form-container">
|
||||
<form id="api-form-fields" method="post" class="api-form">
|
||||
<input type="hidden" id="csrf_token" name="csrfmiddlewaretoken" value="${csrf_token}">
|
||||
${form.as_p() | n}
|
||||
${form.as_p() | n, decode.utf8}
|
||||
<input id="api-access-submit" type="submit" value="${_('Generate API client credentials')}"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -63,13 +63,13 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<div class="dashboard-notifications" tabindex="-1">
|
||||
%if message:
|
||||
<section class="dashboard-banner">
|
||||
${message | n, unicode}
|
||||
${message | n, decode.utf8}
|
||||
</section>
|
||||
%endif
|
||||
|
||||
%if enrollment_message:
|
||||
<section class="dashboard-banner">
|
||||
${enrollment_message | n, unicode}
|
||||
${enrollment_message | n, decode.utf8}
|
||||
</section>
|
||||
%endif
|
||||
</div>
|
||||
|
||||
@@ -113,7 +113,7 @@ from openedx.core.djangolib.js_utils import dump_js_escaped_json, js_escaped_str
|
||||
<%static:require_module module_name="js/edxnotes/views/page_factory" class_name="NotesPageFactory">
|
||||
NotesPageFactory({
|
||||
disabledTabs: ${disabled_tabs | n, dump_js_escaped_json},
|
||||
notes: ${dump_js_escaped_json(notes, NoteJSONEncoder) | n},
|
||||
notes: ${dump_js_escaped_json(notes, NoteJSONEncoder) | n, decode.utf8},
|
||||
notesEndpoint: ${notes_endpoint | n, dump_js_escaped_json},
|
||||
pageSize: ${page_size | n, dump_js_escaped_json},
|
||||
debugMode: ${debug | n, dump_js_escaped_json}
|
||||
|
||||
@@ -15,7 +15,7 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<div class="title">
|
||||
<div class="heading-group">
|
||||
% if homepage_overlay_html:
|
||||
${homepage_overlay_html|n}
|
||||
${homepage_overlay_html | n, decode.utf8}
|
||||
% else:
|
||||
## Translators: 'Open edX' is a registered trademark, please keep this untranslated. See http://open.edx.org for more information.
|
||||
<h1>${Text(_(u"Welcome to the Open edX{registered_trademark} platform!")).format(registered_trademark=HTML("<sup style='font-size: 65%'>®</sup>"))}</h1>
|
||||
|
||||
@@ -65,13 +65,13 @@ from openedx.core.djangolib.markup import HTML, Text
|
||||
<div class="dashboard-notifications" tabindex="-1">
|
||||
%if message:
|
||||
<section class="dashboard-banner">
|
||||
${message | n, unicode}
|
||||
${message | n, decode.utf8}
|
||||
</section>
|
||||
%endif
|
||||
|
||||
%if enrollment_message:
|
||||
<section class="dashboard-banner">
|
||||
${enrollment_message | n, unicode}
|
||||
${enrollment_message | n, decode.utf8}
|
||||
</section>
|
||||
%endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user