diff --git a/lms/templates/staff_problem_info.html b/lms/templates/staff_problem_info.html index 6a72a4d7ac..508d0c71ce 100644 --- a/lms/templates/staff_problem_info.html +++ b/lms/templates/staff_problem_info.html @@ -1,22 +1,24 @@ +<%page expression_filter="h"/> <%namespace name='static' file='/static_content.html'/> <%! from django.utils.translation import ugettext as _ -from django.template.defaultfilters import escapejs +from openedx.core.djangolib.markup import HTML +from openedx.core.djangolib.js_utils import js_escaped_string from six import text_type %> ## The JS for this is defined in xqa_interface.html -${block_content} +${block_content | n, decode.utf8} %if 'detached' not in tags: % if edit_link:
Edit % if xqa_key: / QA % endif
@@ -42,7 +44,7 @@ ${block_content} - ${_('Optional tag (eg "done" or "broken"):') + '  '} + ${_('Optional tag (eg "done" or "broken"):')} 
@@ -64,17 +66,17 @@ ${block_content}

${_('Actions')}

- - + +
% if can_override_problem_score:
- - - + + +
% endif -
+
[ % if can_reset_attempts: @@ -93,26 +95,26 @@ ${block_content} % endif ]
-
+
is_released = ${is_released} - location = ${text_type(location) | h} + location = ${text_type(location)} %for name, field in fields: - + %endfor
${_('Module Fields')}
${name}
${field | h}
${name}
${field}
%for name, field in xml_attributes.items(): - + %endfor
${_('XML attributes')}
${name}
${field | h}
${name}
${field}
- category = ${category | h} + category = ${category}
%if render_histogram:
@@ -128,7 +130,7 @@ ${block_content}
- +
@@ -142,17 +144,17 @@ ${block_content}