Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
408f6296
Commit
408f6296
authored
Dec 18, 2014
by
Usman Khalid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Peer
parent
91160976
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
openassessment/templates/openassessmentblock/peer/oa_peer_assessment.html
+1
-3
openassessment/templates/openassessmentblock/peer/oa_peer_turbo_mode.html
+1
-3
openassessment/xblock/peer_assessment_mixin.py
+3
-3
No files found.
openassessment/templates/openassessmentblock/peer/oa_peer_assessment.html
View file @
408f6296
...
...
@@ -66,9 +66,7 @@
</h3>
</header>
<div
class=
"peer-assessment__display__response"
>
{{ peer_submission.answer.text|linebreaks }}
</div>
{% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer %}
{% if allow_file_upload and peer_file_url %}
<header
class=
"peer-assessment__display__header"
>
...
...
openassessment/templates/openassessmentblock/peer/oa_peer_turbo_mode.html
View file @
408f6296
...
...
@@ -50,9 +50,7 @@
</h3>
</header>
<div
class=
"peer-assessment__display__response"
>
{{ peer_submission.answer.text|linebreaks }}
</div>
{% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer %}
{% if allow_file_upload and peer_file_url %}
<header
class=
"peer-assessment__display__header"
>
...
...
openassessment/xblock/peer_assessment_mixin.py
View file @
408f6296
...
...
@@ -12,7 +12,7 @@ from openassessment.workflow.errors import AssessmentWorkflowError
from
openassessment.xblock.defaults
import
DEFAULT_RUBRIC_FEEDBACK_TEXT
from
.data_conversion
import
create_rubric_dict
from
.resolve_dates
import
DISTANT_FUTURE
from
.data_conversion
import
clean_criterion_feedback
from
.data_conversion
import
clean_criterion_feedback
,
create_submission_dict
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -231,7 +231,7 @@ class PeerAssessmentMixin(object):
peer_sub
=
self
.
get_peer_submission
(
student_item
,
assessment
)
if
peer_sub
:
path
=
'openassessmentblock/peer/oa_peer_turbo_mode.html'
context_dict
[
"peer_submission"
]
=
peer_sub
context_dict
[
"peer_submission"
]
=
create_submission_dict
(
peer_sub
,
self
.
prompts
)
# Determine if file upload is supported for this XBlock.
context_dict
[
"allow_file_upload"
]
=
self
.
allow_file_upload
...
...
@@ -247,7 +247,7 @@ class PeerAssessmentMixin(object):
peer_sub
=
self
.
get_peer_submission
(
student_item
,
assessment
)
if
peer_sub
:
path
=
'openassessmentblock/peer/oa_peer_assessment.html'
context_dict
[
"peer_submission"
]
=
peer_sub
context_dict
[
"peer_submission"
]
=
create_submission_dict
(
peer_sub
,
self
.
prompts
)
# Determine if file upload is supported for this XBlock.
context_dict
[
"allow_file_upload"
]
=
self
.
allow_file_upload
context_dict
[
"peer_file_url"
]
=
self
.
get_download_url_from_submission
(
peer_sub
)
...
...
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