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
52f3e9da
Commit
52f3e9da
authored
Jan 31, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start moving peer grading to xmodule
parent
f3f509da
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
0 deletions
+27
-0
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading.coffee
+27
-0
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
+0
-0
common/lib/xmodule/xmodule/peer_grading_module.py
+0
-0
common/lib/xmodule/xmodule/peer_grading_service.py
+0
-0
No files found.
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading.coffee
0 → 100644
View file @
52f3e9da
# This is a simple class that just hides the error container
# and message container when they are empty
# Can (and should be) expanded upon when our problem list
# becomes more sophisticated
class
PeerGrading
constructor
:
()
->
@
error_container
=
$
(
'.error-container'
)
@
error_container
.
toggle
(
not
@
error_container
.
is
(
':empty'
))
@
message_container
=
$
(
'.message-container'
)
@
message_container
.
toggle
(
not
@
message_container
.
is
(
':empty'
))
@
problem_list
=
$
(
'.problem-list'
)
@
construct_progress_bar
()
construct_progress_bar
:
()
=>
problems
=
@
problem_list
.
find
(
'tr'
).
next
()
problems
.
each
(
(
index
,
element
)
=>
problem
=
$
(
element
)
progress_bar
=
problem
.
find
(
'.progress-bar'
)
bar_value
=
parseInt
(
problem
.
data
(
'graded'
))
bar_max
=
parseInt
(
problem
.
data
(
'required'
))
+
bar_value
progress_bar
.
progressbar
({
value
:
bar_value
,
max
:
bar_max
})
)
$
(
document
).
ready
(()
->
new
PeerGrading
())
common/lib/xmodule/xmodule/js/src/peergrading/peer_grading_problem.coffee
0 → 100644
View file @
52f3e9da
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/peer_grading_module.py
0 → 100644
View file @
52f3e9da
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/peer_grading_service.py
0 → 100644
View file @
52f3e9da
This diff is collapsed.
Click to expand it.
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