Commit 9efde3f2 by Hasnain

WL-415 | marking HTML strings.

parent 896979c5
<%! from django.utils.translation import ugettext as _ %>
<h2 class="problem-header"> <h2 class="problem-header">
## Translators: "External resource" means that this learning module is hosted on a platform external to the edX LMS ## Translators: "External resource" means that this learning module is hosted on a platform external to the edX LMS
${display_name} (External resource) ${display_name} {_("(External resource)")}
</h2> </h2>
% if has_score and weight: % if has_score and weight:
...@@ -32,14 +33,16 @@ ...@@ -32,14 +33,16 @@
class="btn btn-pl-primary btn-base btn-lti-modal" class="btn btn-pl-primary btn-base btn-lti-modal"
data-target="#${element_id + '-lti-modal'}" data-target="#${element_id + '-lti-modal'}"
> >
${button_text or 'View resource in a modal window'} <i class="icon fa fa-external-link"></i> <% alternate_button_text = {_("View resource in a modal window")} %>
${button_text or alternate_button_text} <i class="icon fa fa-external-link"></i>
</button> </button>
% else: % else:
<button <button
class="btn btn-pl-primary btn-base btn-lti-new-window" class="btn btn-pl-primary btn-base btn-lti-new-window"
data-target="${form_url}" data-target="${form_url}"
> >
${button_text or 'View resource in a new window'} <i class="icon fa fa-external-link"></i> <% alternate_button_text = {_("View resource in a new window")} %>
${button_text or alternate_button_text} <i class="icon fa fa-external-link"></i>
</button> </button>
% endif % endif
</p> </p>
...@@ -74,12 +77,12 @@ ...@@ -74,12 +77,12 @@
% endif % endif
% elif not hide_launch: % elif not hide_launch:
<h3 class="error_message"> <h3 class="error_message">
Please provide launch_url. Click "Edit", and fill in the required fields. {_("Please provide launch_url. Click 'Edit', and fill in the required fields.")}
</h3> </h3>
% endif % endif
% if has_score and comment: % if has_score and comment:
<h4 class="problem-feedback-label">Feedback on your work from the grader:</h4> <h4 class="problem-feedback-label">{_("Feedback on your work from the grader:")}</h4>
<div class="problem-feedback"> <div class="problem-feedback">
## sanitized with bleach in view ## sanitized with bleach in view
${comment} ${comment}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment