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
a9926f04
Commit
a9926f04
authored
Aug 08, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display message to student when they cannot see their peer grading feedback yet.
parent
900377e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
+3
-0
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+8
-5
lms/templates/combinedopenended/combined_open_ended_hidden_results.html
+10
-0
No files found.
common/lib/xmodule/xmodule/js/src/combinedopenended/display.coffee
View file @
a9926f04
...
...
@@ -250,6 +250,9 @@ class @CombinedOpenEnded
@
hide_rubrics
()
@
$
(
@
previous_rubric_sel
).
click
@
previous_rubric
@
$
(
@
next_rubric_sel
).
click
@
next_rubric
if
response
.
hide_reset
@
reset_button
.
hide
()
show_status_current
:
()
=>
data
=
{}
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
a9926f04
...
...
@@ -506,10 +506,13 @@ class CombinedOpenEndedV1Module():
student_id
=
self
.
system
.
anonymous_student_id
success
=
False
allowed_to_submit
=
True
error_string
=
(
"You need to peer grade {0} more in order to make another submission. "
"You have graded {1}, and {2} are required. You have made {3} successful peer grading submissions."
)
error_string
=
(
"<h4>Feedback not available yet</h4>"
"<p>You need to peer grade {0} more submissions in order to see your feedback.</p>"
"<p>You have graded responses from {1} students, and {2} students have graded your submissions. </p>"
"<p>You have made {3} submissions.</p>"
)
try
:
response
=
self
.
peer_gs
.
get_data_for_location
(
self
.
location
,
student_id
)
response
=
self
.
peer_gs
.
get_data_for_location
(
self
.
location
.
url
(),
student_id
)
log
.
info
(
response
)
count_graded
=
response
[
'count_graded'
]
count_required
=
response
[
'count_required'
]
student_sub_count
=
response
[
'student_sub_count'
]
...
...
@@ -539,7 +542,7 @@ class CombinedOpenEndedV1Module():
all_responses
=
[]
success
,
can_see_rubric
,
error
=
self
.
check_if_student_has_done_needed_grading
()
if
not
can_see_rubric
:
return
{
'html'
:
error
,
'success'
:
Fals
e
}
return
{
'html'
:
self
.
system
.
render_template
(
'{0}/combined_open_ended_hidden_results.html'
.
format
(
self
.
TEMPLATE_DIR
),
{
'error'
:
error
}),
'success'
:
True
,
'hide_reset'
:
Tru
e
}
loop_up_to_task
=
self
.
current_task_number
+
1
contexts
=
[]
...
...
@@ -565,7 +568,7 @@ class CombinedOpenEndedV1Module():
'results'
:
contexts
,
}
html
=
self
.
system
.
render_template
(
'{0}/combined_open_ended_results.html'
.
format
(
self
.
TEMPLATE_DIR
),
context
)
return
{
'html'
:
html
,
'success'
:
True
}
return
{
'html'
:
html
,
'success'
:
True
,
'hide_reset'
:
False
}
def
get_legend
(
self
,
_data
):
"""
...
...
lms/templates/combinedopenended/combined_open_ended_hidden_results.html
0 → 100644
View file @
a9926f04
<div
class=
"combined-rubric-container"
data-status=
"shown"
data-number=
"1"
>
<div
class=
"visibility-control visibility-control-rubric"
>
<div
class=
"inner"
>
</div>
<span
class=
"section-header section-header-rubric"
>
Submitted Rubric
</span>
</div>
<div
class=
"written-feedback"
>
${error}
</div>
</div>
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