%!
import json
from django.utils.translation import ugettext as _
%>
% if has_score and weight:
% if module_score is not None:
## Translators: "points" is the student's achieved score on this LTI unit, and "total_points" is the maximum number of points achievable.
(${_("{points} / {total_points} points").format(points=module_score, total_points=weight)})
% else:
## Translators: "total_points" is the maximum number of points achievable on this LTI unit
(${_("{total_points} points possible").format(total_points=weight)})
% endif
% endif
% if launch_url and launch_url != 'http://www.example.com' and not hide_launch:
% if open_in_a_new_page:
% else:
## The result of the form submit will be rendered here.
% endif
% elif not hide_launch:
${_('Please provide launch_url. Click "Edit", and fill in the required fields.')}
% endif
% if has_score and comment:
${_("Feedback on your work from the grader:")}
## sanitized with bleach in view
${comment}
% endif