-
+
${_("The name of the organization sponsoring the new course. (This name is often the same as the original organization name.)")}
${_("Note: No spaces or special characters are allowed.")}
@@ -90,7 +91,7 @@ require(["domReady!", "jquery", "jquery.form", "js/views/course_rerun"], functio
-
+
${_("The unique number that identifies the new course within the organization. (This number is often the same as the original course number.)")}
${_("Note: No spaces or special characters are allowed.")}
diff --git a/cms/templates/course_info.html b/cms/templates/course_info.html
index 7a44f142e3..71e3149566 100644
--- a/cms/templates/course_info.html
+++ b/cms/templates/course_info.html
@@ -1,5 +1,6 @@
-<%!
+<%!
from django.utils.translation import ugettext as _
+ from django.template.defaultfilters import escapejs
%>
<%inherit file="base.html" />
<%def name="online_help_token()"><% return "updates" %>%def>
@@ -20,7 +21,7 @@
<%block name="jsextra">
diff --git a/lms/templates/main.html b/lms/templates/main.html
index 4c5d50ef1c..c3895de287 100644
--- a/lms/templates/main.html
+++ b/lms/templates/main.html
@@ -11,7 +11,7 @@
<%! from microsite_configuration import page_title_breadcrumbs %>
<%namespace name='static' file='static_content.html'/>
-<%! from django.utils import html %>
+<%! from django.utils.http import urlquote_plus %>
## Define a couple of helper functions to make life easier when
## embedding theme conditionals into templates. All inheriting
@@ -148,7 +148,7 @@
<%def name="login_query()">${
u"?course_id={0}&enrollment_action={1}".format(
- html.escape(course_id),
- html.escape(enrollment_action)
+ urlquote_plus(course_id),
+ urlquote_plus(enrollment_action)
) if course_id and enrollment_action else ""
}%def>
diff --git a/lms/templates/peer_grading/peer_grading.html b/lms/templates/peer_grading/peer_grading.html
index 172360c9e2..d868347445 100644
--- a/lms/templates/peer_grading/peer_grading.html
+++ b/lms/templates/peer_grading/peer_grading.html
@@ -41,7 +41,7 @@ criteria.{end_li_tag}
%if problem['closed']:
${problem['problem_name']}
%else:
- ${problem['problem_name']}
+ ${problem['problem_name']}
%endif
diff --git a/lms/templates/peer_grading/peer_grading_problem.html b/lms/templates/peer_grading/peer_grading_problem.html
index 52c6f6ced0..67d575dc4f 100644
--- a/lms/templates/peer_grading/peer_grading_problem.html
+++ b/lms/templates/peer_grading/peer_grading_problem.html
@@ -1,6 +1,6 @@
<%! from django.utils.translation import ugettext as _ %>
-
+
@@ -48,7 +48,7 @@
-
+
${_("This submission has explicit, offensive, or (I suspect) plagiarized content. ")}
diff --git a/lms/templates/shoppingcart/receipt.html b/lms/templates/shoppingcart/receipt.html
index 7a35bc014f..f393473143 100644
--- a/lms/templates/shoppingcart/receipt.html
+++ b/lms/templates/shoppingcart/receipt.html
@@ -52,7 +52,7 @@
% if item.status == "purchased":