diff --git a/lms/templates/survey/survey.html b/lms/templates/survey/survey.html index f0b8dc1eb9..acebd44195 100644 --- a/lms/templates/survey/survey.html +++ b/lms/templates/survey/survey.html @@ -1,3 +1,4 @@ +<%page expression_filter="h"/> <%inherit file="../main.html" /> <%namespace name='static' file='../static_content.html'/> <%! @@ -26,7 +27,7 @@ from django.utils import html

${course.display_org_with_default} ${course.display_number_with_default} - ${course.display_name | h} + ${course.display_name}

${_("Pre-Course Survey")}

@@ -41,7 +42,7 @@ from django.utils import html - ${survey_form} + ${survey_form | n, unicode}
diff --git a/lms/templates/tab_module.html b/lms/templates/tab_module.html index 21f69fc359..2b94481a44 100644 --- a/lms/templates/tab_module.html +++ b/lms/templates/tab_module.html @@ -1,3 +1,10 @@ +<%page expression_filter="h"/> +<%! +from openedx.core.djangolib.js_utils import ( + dump_js_escaped_json, js_escaped_string +) +%> +
@@ -5,7 +12,7 @@ <%block name="js_extra"> diff --git a/lms/templates/themable-footer.html b/lms/templates/themable-footer.html index bd78ca45f7..2db3d82f26 100644 --- a/lms/templates/themable-footer.html +++ b/lms/templates/themable-footer.html @@ -1,4 +1,5 @@ ## mako +<%page expression_filter="h"/> <%namespace name='static' file='static_content.html'/> ## This file only exists as an additional layer of indirection to preserve diff --git a/lms/templates/tracking_log.html b/lms/templates/tracking_log.html index 148750ccbe..3de36d1c02 100644 --- a/lms/templates/tracking_log.html +++ b/lms/templates/tracking_log.html @@ -1,3 +1,4 @@ +<%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ %> @@ -13,4 +14,4 @@ % endfor - \ No newline at end of file + diff --git a/lms/templates/unsubscribe.html b/lms/templates/unsubscribe.html index 4e47c1b643..71258caa3a 100644 --- a/lms/templates/unsubscribe.html +++ b/lms/templates/unsubscribe.html @@ -1,4 +1,6 @@ +<%page expression_filter="h"/> <%! +from openedx.core.djangolib.markup import Text, HTML from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.conf import settings @@ -14,13 +16,16 @@ from django.conf import settings

- ${_("You will no longer receive forum notification emails from {platform_name}. " + ${Text( + _("You will no longer receive forum notification emails from {platform_name}. " "You may {dashboard_link_start}return to your dashboard{link_end}. " - "If you did not mean to do this, {undo_link_start}you can re-subscribe{link_end}.").format( - platform_name=settings.PLATFORM_NAME, - dashboard_link_start="".format(reverse('dashboard')), - undo_link_start="".format(reverse('resubscribe_forum_update', args=[token])), - link_end="",)} + "If you did not mean to do this, {undo_link_start}you can re-subscribe{link_end}." + )).format( + platform_name=settings.PLATFORM_NAME, + dashboard_link_start=HTML("".format(reverse('dashboard'))), + undo_link_start=HTML("".format(reverse('resubscribe_forum_update', args=[token]))), + link_end=HTML(""), + )}

diff --git a/lms/templates/using.html b/lms/templates/using.html index d5ec25a95d..fbf4d44dcc 100644 --- a/lms/templates/using.html +++ b/lms/templates/using.html @@ -1,3 +1,4 @@ +<%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ %>

${_('Using the system')}