From addb5bf6349001d7cd8044adbed07b6b22c97c59 Mon Sep 17 00:00:00 2001 From: Robert Raposa Date: Mon, 23 May 2016 09:00:32 -0400 Subject: [PATCH] Fix violations with n filter. --- lms/templates/api_admin/status.html | 2 +- lms/templates/dashboard.html | 4 ++-- lms/templates/edxnotes/edxnotes.html | 2 +- lms/templates/index.html | 2 +- themes/edx.org/lms/templates/dashboard.html | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lms/templates/api_admin/status.html b/lms/templates/api_admin/status.html index 0d84b753ce..c75939fb08 100644 --- a/lms/templates/api_admin/status.html +++ b/lms/templates/api_admin/status.html @@ -45,7 +45,7 @@ from openedx.core.djangolib.markup import HTML, Text
- ${form.as_p() | n} + ${form.as_p() | n, decode.utf8}
diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index a7123cfe9e..0ea4496170 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -63,13 +63,13 @@ from openedx.core.djangolib.markup import HTML, Text
%if message:
- ${message | n, unicode} + ${message | n, decode.utf8}
%endif %if enrollment_message:
- ${enrollment_message | n, unicode} + ${enrollment_message | n, decode.utf8}
%endif
diff --git a/lms/templates/edxnotes/edxnotes.html b/lms/templates/edxnotes/edxnotes.html index 688b832691..1f4bb51d6d 100644 --- a/lms/templates/edxnotes/edxnotes.html +++ b/lms/templates/edxnotes/edxnotes.html @@ -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} diff --git a/lms/templates/index.html b/lms/templates/index.html index bcf7d48d10..fd2e2ec459 100644 --- a/lms/templates/index.html +++ b/lms/templates/index.html @@ -15,7 +15,7 @@ from openedx.core.djangolib.markup import HTML, Text
% 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.

${Text(_(u"Welcome to the Open edX{registered_trademark} platform!")).format(registered_trademark=HTML("®"))}

diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index 19e8624fde..3410491a6b 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -65,13 +65,13 @@ from openedx.core.djangolib.markup import HTML, Text
%if message:
- ${message | n, unicode} + ${message | n, decode.utf8}
%endif %if enrollment_message:
- ${enrollment_message | n, unicode} + ${enrollment_message | n, decode.utf8}
%endif