From 632bee517799c6deb6e04609d7976905ce54c883 Mon Sep 17 00:00:00 2001
From: Adeel Khan
- ${Text(_(u"Course credit can help you get a jump start on your university degree, finish a degree already started, or fulfill requirements at a different academic institution."))} + ${_(u"Course credit can help you get a jump start on your university degree, finish a degree already started, or fulfill requirements at a different academic institution.")}
- ${Text(_(u'There are 2 steps to getting course credit.'))} + ${_(u'There are 2 steps to getting course credit.')}
- ${_("We're sorry, this module is temporarily unavailable. Our staff is working " + ${Text(_("We're sorry, this module is temporarily unavailable. Our staff is working " "to fix it as soon as possible. Please email us at {tech_support_email} to " - "report any problems or downtime.").format( - tech_support_email=u"{0}".format(static.get_tech_support_email_address()) + "report any problems or downtime.")).format( + tech_support_email=HTML(u"{0}").format(static.get_tech_support_email_address()) )}
@@ -23,13 +24,13 @@ from openedx.core.djangolib.markup import HTML, Text${_("Error:")}
-${error | h}
+${error}
${_("Raw data:")} -
${data | h}
+${data}
% endif
diff --git a/lms/templates/peer_grading/peer_grading.html b/lms/templates/peer_grading/peer_grading.html
index c03b61aee9..928d2a6708 100644
--- a/lms/templates/peer_grading/peer_grading.html
+++ b/lms/templates/peer_grading/peer_grading.html
@@ -1,6 +1,9 @@
-<%! from django.utils.translation import ugettext as _ %>
+<%page expression_filter="h"/>
+<%! from django.utils.translation import ugettext as _
+from openedx.core.djangolib.markup import HTML, Text
+%>
<%
-nothing_to_grade_message = _(
+nothing_to_grade_message = Text(_(
"""
{p_tag}You currently do not have any peer grading to do. In order to have peer grading to do:
{ul_tag}
@@ -10,7 +13,9 @@ criteria.{end_li_tag}
{li_tag}There must be submissions that are waiting for grading.{end_li_tag}
{end_ul_tag}
{end_p_tag}
-""").format(p_tag="", end_p_tag="
", ul_tag=""), end_p_tag=HTML("
"), + ul_tag=HTML("${_("We were unable to activate your secondary email {secondary_email}").format(secondary_email=secondary_email)}
% endif - ## xss-lint: disable=python-wrap-html -${_('Go back to the {link_start}home page{link_end}.').format(link_start='', link_end='')}
+${Text(_('Go back to the {link_start}home page{link_end}.')).format(link_start=HTML(''), link_end=HTML(''))}