Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
e2aea75f
Commit
e2aea75f
authored
Jul 18, 2013
by
Felix Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug in recording hints shown.
Removed the answer display next to voting. (This was deemed distracting.)
parent
d9517ea1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
common/lib/xmodule/xmodule/crowdsource_hinter.py
+1
-2
common/templates/hinter_display.html
+2
-2
No files found.
common/lib/xmodule/xmodule/crowdsource_hinter.py
View file @
e2aea75f
...
@@ -227,7 +227,7 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule):
...
@@ -227,7 +227,7 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule):
if
not
rand_hint
in
hints
:
if
not
rand_hint
in
hints
:
go_on
=
True
go_on
=
True
hints
.
append
(
rand_hint
)
hints
.
append
(
rand_hint
)
self
.
previous_answers
+=
[[
hint_
index
,
[
hint_answer
]]]
self
.
previous_answers
+=
[[
hint_
answer
,
[
hint_index
]]]
return
{
'hints'
:
hints
,
return
{
'hints'
:
hints
,
'answer'
:
answer
}
'answer'
:
answer
}
...
@@ -281,7 +281,6 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule):
...
@@ -281,7 +281,6 @@ class CrowdsourceHinterModule(CrowdsourceHinterFields, XModule):
except
KeyError
:
except
KeyError
:
# Sometimes, the hint that a user saw will have been deleted by the instructor.
# Sometimes, the hint that a user saw will have been deleted by the instructor.
continue
continue
return
{
'answer_to_hints'
:
answer_to_hints
,
return
{
'answer_to_hints'
:
answer_to_hints
,
'user_submissions'
:
self
.
user_submissions
}
'user_submissions'
:
self
.
user_submissions
}
...
...
common/templates/hinter_display.html
View file @
e2aea75f
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
% for hint_pk, hint_text in pk_dict.items():
% for hint_pk, hint_text in pk_dict.items():
<p>
<p>
<input
class=
"vote"
data-answer=
"${answer}"
data-hintno=
"${hint_pk}"
type=
"button"
value=
"Vote"
>
<input
class=
"vote"
data-answer=
"${answer}"
data-hintno=
"${hint_pk}"
type=
"button"
value=
"Vote"
>
${
answer}: ${
hint_text}
${hint_text}
</p>
</p>
% endfor
% endfor
% endfor
% endfor
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<div
class =
"previous-answer"
id=
"previous-answer-${unspace(answer)}"
data-answer=
"${answer}"
>
<div
class =
"previous-answer"
id=
"previous-answer-${unspace(answer)}"
data-answer=
"${answer}"
>
<div
class =
"hint-inner-container"
>
<div
class =
"hint-inner-container"
>
<p>
<p>
What hint would you give a student who
made the same mistake you did? Please don't give away the
answer.
What hint would you give a student who
also arrived at an answer of ${answer}? Please don't give away the correct
answer.
</p>
</p>
<textarea
cols=
"50"
class=
"custom-hint"
data-answer=
"${answer}"
>
<textarea
cols=
"50"
class=
"custom-hint"
data-answer=
"${answer}"
>
What would you say to help someone who got this wrong answer?
What would you say to help someone who got this wrong answer?
...
...
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