Commit 8b7708be by Xavier Antoviaque

Merge pull request #9 from edx-solutions/remove-points-possible

remove-points-possible: Remove display of grade points in title
parents 5487f93d aa9296c9
......@@ -69,15 +69,12 @@ class DragAndDropBlock(XBlock):
Player view, displayed to the student
"""
max_score_string = '({0} Point{1} Possible)'.format(int(self.weight),
's' if self.weight > 1 else '') if self.weight else ''
js_templates = load_resource('/templates/html/js_templates.html')
context = {
'js_templates': js_templates,
'title': self.display_name,
'question_text': self.question_text,
'max_score_string': max_score_string
}
fragment = Fragment()
......
......@@ -5,8 +5,6 @@
{{ title }}
</h2>
<div class="problem-progress">{{ max_score_string }}</div>
<section class="problem" role="application">
<div class="title1">Question</div>
<p>{{ question_text }}</p>
......
......@@ -48,7 +48,6 @@ def test_templates_contents():
assert_in('{{ value }}', student_fragment.content)
assert_in("Test Drag &amp; Drop", student_fragment.content)
assert_in("Question Drag &amp; Drop", student_fragment.content)
assert_in("(5 Points Possible)", student_fragment.content)
studio_fragment = block.render('studio_view', Mock())
assert_in('<div class="xblock--drag-and-drop editor-with-buttons">',
......
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