Commit 408f6296 by Usman Khalid

Peer

parent 91160976
......@@ -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">
......
......@@ -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">
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment