Skip to content

Commit

Permalink
Merge pull request #9 from edx-solutions/remove-points-possible
Browse files Browse the repository at this point in the history
remove-points-possible: Remove display of grade points in title
  • Loading branch information
antoviaque committed Aug 20, 2014
2 parents 5487f93 + aa9296c commit 8b7708b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions drag_and_drop_v2/drag_and_drop_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,12 @@ def student_view(self, context):
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()
Expand Down
2 changes: 0 additions & 2 deletions drag_and_drop_v2/templates/html/drag_and_drop.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ <h2 class="problem-header">
{{ title }}
</h2>

<div class="problem-progress">{{ max_score_string }}</div>

<section class="problem" role="application">
<div class="title1">Question</div>
<p>{{ question_text }}</p>
Expand Down
1 change: 0 additions & 1 deletion tests/test_drag_and_drop_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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">',
Expand Down

0 comments on commit 8b7708b

Please sign in to comment.