Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
xblock-drag-and-drop-v2
Commits
aa9296c9
Commit
aa9296c9
authored
Aug 19, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove-points-possible: Remove display of grade points in title
parent
1ad3baf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
drag_and_drop_v2/drag_and_drop_v2.py
+0
-3
drag_and_drop_v2/templates/html/drag_and_drop.html
+0
-2
tests/test_drag_and_drop_v2.py
+0
-1
No files found.
drag_and_drop_v2/drag_and_drop_v2.py
View file @
aa9296c9
...
@@ -69,15 +69,12 @@ class DragAndDropBlock(XBlock):
...
@@ -69,15 +69,12 @@ class DragAndDropBlock(XBlock):
Player view, displayed to the student
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'
)
js_templates
=
load_resource
(
'/templates/html/js_templates.html'
)
context
=
{
context
=
{
'js_templates'
:
js_templates
,
'js_templates'
:
js_templates
,
'title'
:
self
.
display_name
,
'title'
:
self
.
display_name
,
'question_text'
:
self
.
question_text
,
'question_text'
:
self
.
question_text
,
'max_score_string'
:
max_score_string
}
}
fragment
=
Fragment
()
fragment
=
Fragment
()
...
...
drag_and_drop_v2/templates/html/drag_and_drop.html
View file @
aa9296c9
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
{{ title }}
{{ title }}
</h2>
</h2>
<div
class=
"problem-progress"
>
{{ max_score_string }}
</div>
<section
class=
"problem"
role=
"application"
>
<section
class=
"problem"
role=
"application"
>
<div
class=
"title1"
>
Question
</div>
<div
class=
"title1"
>
Question
</div>
<p>
{{ question_text }}
</p>
<p>
{{ question_text }}
</p>
...
...
tests/test_drag_and_drop_v2.py
View file @
aa9296c9
...
@@ -48,7 +48,6 @@ def test_templates_contents():
...
@@ -48,7 +48,6 @@ def test_templates_contents():
assert_in
(
'{{ value }}'
,
student_fragment
.
content
)
assert_in
(
'{{ value }}'
,
student_fragment
.
content
)
assert_in
(
"Test Drag & Drop"
,
student_fragment
.
content
)
assert_in
(
"Test Drag & Drop"
,
student_fragment
.
content
)
assert_in
(
"Question Drag & Drop"
,
student_fragment
.
content
)
assert_in
(
"Question Drag & Drop"
,
student_fragment
.
content
)
assert_in
(
"(5 Points Possible)"
,
student_fragment
.
content
)
studio_fragment
=
block
.
render
(
'studio_view'
,
Mock
())
studio_fragment
=
block
.
render
(
'studio_view'
,
Mock
())
assert_in
(
'<div class="xblock--drag-and-drop editor-with-buttons">'
,
assert_in
(
'<div class="xblock--drag-and-drop editor-with-buttons">'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment