+
+ $tlang.getString("gen.assig") - $tlang.getString("gen.pre")
+
-
- $tlang.getString("gen.assig") - $tlang.getString("gen.pre")
-
-
- #set($allowUpdateAssignment=$!service.allowUpdateAssignment($assignment.Reference))
- #if ($alertMessage)
$tlang.getString("gen.alert") $alertMessage
#end
-
-
-
- $tlang.getString("gen.title")
-
-
- #assignmentTitleIcon($assignment)
- $validator.escapeHtml($assignment.getTitle())
-
-
-
-
- $tlang.getString("gen.due"):
-
-
-
- #if ($assignment.getContent().getHideDueDate() != "true" || $!allowUpdateAssignment)
- $!assignment.dueTime.toStringLocalFull()
+ #set($allowUpdateAssignment = $!service.allowUpdateAssignment($assignmentReference))
+ #if ($alertMessage)
+ $tlang.getString("gen.alert") $alertMessage
+
#end
+
+
+
+ $tlang.getString("gen.title")
+
+
+ #assignmentTitleIcon($assignment)
+ $validator.escapeHtml($assignment.Title)
+
+
+
+
+ $tlang.getString("gen.due"):
+
+
+ #if (!$!assignment.HideDueDate || $!allowUpdateAssignment)
+ $!assignment.DueDate.toString()
#end
-
-
- #if($assignment.getContent().getTypeOfSubmission() != 4)
- ##resubmit number
- #if($!resubmitNumber)
-
-
- $tlang.getString("allow.resubmit.number")
-
-
- $resubmitNumber
-
-
- #end
- ## resubmit close time
- #if ($!resubmitCloseTime)
-
-
- $tlang.getString("allow.resubmit.closeTime")
-
-
- $resubmitCloseTime
-
-
- #end
- #end
- #if ($withGrade)
-
-
- $tlang.getString("gen.status")
-
-
- #if ($!submission)
- $!submission.Status
+
+
+ #if($assignment.TypeOfSubmission.ordinal() != 4)
+ ##resubmit number
+ #if($!resubmitNumber)
+
+
+ $tlang.getString("allow.resubmit.number")
+
+
+ $resubmitNumber
+
+
+ #end
+ ## resubmit close time
+ #if ($!resubmitCloseTime)
+
+
+ $tlang.getString("allow.resubmit.closeTime")
+
+
+ $resubmitCloseTime
+
+
+ #end
+ #end
+ #if ($withGrade)
+
+
+ $tlang.getString("gen.status")
+
+
+ #if ($!submission)
+ $!service.getSubmissionStatus($!submission)
#else
- $tlang.getString("gen.notsta")
- #end
-
-
-
-
- $tlang.getString("gen.grasca")
-
-
- #set ($gradeScale = $assignment.getContent().getTypeOfGradeString())
- $gradeScale
- #if ($gradeTypeTable.get($assignment.getContent().getTypeOfGrade()) == $!tlang.getString("points"))
- ($tlang.getString("stupresub.max") $assignment.getContent().getMaxGradePointDisplay())
- #end
-
-
- #if($scoringComponentEnabled)
- #parse ("/vm/assignment/chef_assignments_scoring_agent.vm")
- #end
+ $tlang.getString("gen.notsta")
+ #end
+
+
+
+
+ $tlang.getString("gen.grasca")
+
+
+ #set ($gradeScale = $!typeOfGradeString)
+ $gradeScale
+ #if ($!assignment.TypeOfGrade.ordinal() == 3)
+ ($tlang.getString("stupresub.max") $!service.getMaxPointGradeDisplay($!assignment.ScaleFactor, $!assignment.MaxGradePoint))
+ #end
+
+ ## for grading via an external scoring service, if enabled for an associated gradebook item
+ #if($scoringComponentEnabled)
+ #parse ("/vm/assignment/chef_assignments_scoring_agent.vm")
+ #end
-
-
- #end
- ##show alert when assignment is modified and the modified date is after its open date
- #set($newAssignment="false")
- #set($newAssignment=$assignment.getProperties().getProperty("newAssignment"))
- #if ($assignment.getTimeLastModified().after($assignment.getOpenTime()) && !$!newAssignment.equalsIgnoreCase("true"))
-
-
- $tlang.getString("gen.modbyins")
-
-
- $assignment.getTimeLastModified().toStringLocalFull()
-
-
- #end
-
-
- $tlang.getString("gen.submission")
-
- #if ($!text.length()>0)
-
- $validator.escapeHtmlFormattedText($text)
-
- #end
- #set ($size = 0)
- #set ($props = false)
- #foreach ($attachment in $attachments)
- #set ($props = $attachment.Properties)
- #if ($!props)
- #set ($size = $size + 1)
- #end
- #end
- #if ($size == 0)
- ## $tlang.getString("gen.noatt")
- #else
-
- #if ($assignment.getContent().getTypeOfSubmission() == 5)
+
+
+ #end
+ ## show alert when assignment is modified and the modified date is after its open date
+ #set($newAssignment="false")
+ #set($newAssignment=$assignment.getProperties().get("newAssignment"))
+ #if ($!assignment.DateModified.after($assignment.OpenDate) && !$!newAssignment.equalsIgnoreCase("true"))
+
+
+ $tlang.getString("gen.modbyins")
+
+
+ $assignment.DateModified.toString()
+
+
+ #end
+
+
+ $tlang.getString("gen.submission")
+
+ #if ($!text.length() > 0)
+
+ $validator.escapeHtmlFormattedText($text)
+
+ #end
+
+ #set ($size = 0)
+ #set ($props = false)
+ #foreach ($attachment in $attachments)
+ #set ($props = $attachment.Properties)
+ #if ($!props)
+ #set ($size = $size + 1)
+ #end
+ #end
+ #if ($size > 0)
+
+ #if ($!assignment.TypeOfSubmission.ordinal() == 5)
$tlang.getString("gen.att.single")
#else
- $tlang.getString("gen.att")
- #end
-
-
- #end
-
- #if ($assignment.getContent().honorPledge!=1)
- #if ($honor_pledge_yes.equals("true"))
-
- $honor_pledge_text
-
-
- #else
-
- $tlang.getString("gen.honple2val")
-
-
- $honor_pledge_text
-
-
+ $tlang.getString("gen.att")
+ #end
+
+
+ #end
- #end
- ## $tlang.getString("gen.title")
- #end
-
+
+ #if ($!assignment.HonorPledge)
+ #if ($honor_pledge_yes.equals("true"))
+
+
+
+ $honor_pledge_text
+
+
+ #else
+
+ $tlang.getString("gen.honple2val")
+
+
+
+
+ $honor_pledge_text
+
+
+
+ #end
+ #end
+
diff --git a/assignment/tool/src/webapp/vm/assignment/chef_assignments_student_view_grade.vm b/assignment/tool/src/webapp/vm/assignment/chef_assignments_student_view_grade.vm
index 54981f6f5c4d..341e20f63b5a 100644
--- a/assignment/tool/src/webapp/vm/assignment/chef_assignments_student_view_grade.vm
+++ b/assignment/tool/src/webapp/vm/assignment/chef_assignments_student_view_grade.vm
@@ -1,513 +1,545 @@
- #set ($assignment = $submission.Assignment)
- #if ($taggable)
- #if (!$itemHelpers.isEmpty())
-
- #end
- #end
-
- $validator.escapeHtml($assignment.getTitle())
- #if ($!assignment.isGroup() )
- - $tlang.getString("gen.groupassignment")
+ #if ($taggable)
+ #if (!$itemHelpers.isEmpty())
+
+ #end
+ #end
+ $validator.escapeHtml($assignment.Title)
+ #if ($!assignment.IsGroup)
+ - $tlang.getString("gen.groupassignment")
+ #end
+ #if ($submission.Returned)
+ - $tlang.getString("gen.returned")
+ #elseif (!$submission.Submitted)
+ - $!service.getSubmissionStatus($!submission.Id)
+ #elseif (!$!nonElectronicType && $!submission.UserSubmission)
+ - $tlang.getString("gen.subm4")
+ #end
+
+
+ #if ($alertMessage)
+ $tlang.getString("gen.alert") $alertMessage
+ #end
+
+ #set($submitTime=false)
+ #set($submitTime=$submission.DateSubmitted)
+ #set($returnTime=false)
+ #set($returnTime=$submission.DateReturned)
+
+
+
+ $tlang.getString("gen.title")
+
+
+ #assignmentTitleIcon($assignment) $validator.escapeHtml($assignment.title)
+
+
+ #if ($!assignment.IsGroup)
+
+
+ $tlang.getString('gen.group')
+
+
+ #set($aGroup = $!site.getGroup($submission.GroupId))
+ #if ($aGroup)
+ $aGroup.Title
+ #else
+ $tlang.getString("group.submission.not.found")
+ #end
+
+
+ #end
+
+
+ #if ($!assignment.IsGroup)
+ $tlang.getString("gen.students")
+ #else
+ $tlang.getString("gen.student")
+ #end
+
+
+ #if (!$privateView)
+ #foreach ($user in $!users)
+ $validator.escapeHtml($user.DisplayName)
+ #end
+ #end
+
+
+ #if ($!assignment.TypeOfSubmission.ordinal() != 4)
+ ## exclude non-electronic type of submission
+
+
+ $tlang.getString("gen.subm5")
+
+
+ ## get submit time
+ #if ($!submitTime)
+ $submitTime.toString()
+ #end
+
+
+
+ #end
+ #if ($withGrade)
+ #set ($gradeScale = $!typeOfGradeString)
+ #if ($!submission.Graded && $!submission.GradeReleased)
+
+
+ $tlang.getString("gen.gra")
+
+
+
+ #if ($!assignment.TypeOfGrade.ordinal() != 1)
+ #if ($!override)
+ $override
+ #else
+ $!service.getGradeDisplay($!submission.Grade, $!assignment.TypeOfGrade, $!assignment.ScaleFactor)
+ #end
+ #else
+ $tlang.getString("gen.nograd")
+ #end
+ #if ($!assignment.TypeOfGrade.ordinal() == 3)
+ ($tlang.getString("grade.max") $!service.getMaxPointGradeDisplay($!assignment.ScaleFactor, $!assignment.MaxGradePoint))
+
+ ## for grading via an external scoring service, if enabled for an associated gradebook item
+ #if($scoringComponentEnabled)
+ #parse ("/vm/assignment/chef_assignments_scoring_agent.vm")
+ #end
+ #end
+
+
+
+ #else
+
+
+ $tlang.getString("gen.grasca")
+
+
+ $gradeScale
+ #if ($!assignment.TypeOfGrade.ordinal() == 3)
+ ($tlang.getString("grade.max") $!assignment.MaxGradePoint)
+
+ ## for grading via an external scoring service, if enabled for an associated gradebook item
+ #if($scoringComponentEnabled)
+ #parse ("/vm/assignment/chef_assignments_scoring_agent.vm")
+ #end
#end
- #if ($submission.Returned)
- - $tlang.getString("gen.returned")
- #elseif (!$submission.getSubmitted())
- - $submission.getStatus()
- #elseif (!$!nonElectronicType && $!submission.isUserSubmission())
- - $tlang.getString("gen.subm4")
- #end
-
+
+
+ #end
+ #end
- #if ($alertMessage)$tlang.getString("gen.alert") $alertMessage
#end
- #set($submitTime=false)
- #set($submitTime=$submission.getTimeSubmitted())
- #set($returnTime=false)
- #set($returnTime=$submission.getTimeReturned())
-
-
-
- $tlang.getString("gen.title")
-
-
- #assignmentTitleIcon($assignment)
- $validator.escapeHtml($assignment.title)
-
-
- #if ($!assignment.isGroup())
-
-
- $tlang.getString('gen.group')
-
-
- #set($aGroup = $!site.getGroup($submission.getSubmitterId()))
- #if ($aGroup)
- $aGroup.getTitle()
- #else
- $tlang.getString("group.submission.not.found")
- #end
-
-
- #end
-
-
- #if ($!assignment.isGroup() )
- $tlang.getString("gen.students")
- #else
- $tlang.getString("gen.student")
- #end
-
-
- #if (!$privateView)
- #set ($submitters = $submission.submitters)
- #foreach ($submitter in $submitters)
- $validator.escapeHtml($submitter.DisplayName)
- #end
- #end
-
-
- #if ($!submissionType != 4)
- ## exclude non-electronic type of submission
-
-
- $tlang.getString("gen.subm5")
-
-
- ## get submit time
- #if($!submitTime)$submitTime.toStringLocalFull()#end
-
-
- #end
- #if ($withGrade)
- #set ($gradeScale = $assignment.getContent().getTypeOfGradeString())
- #if ($submission.getGraded() && $submission.getGradeReleased())
-
-
- $tlang.getString("gen.gra")
-
-
-
- #if ($assignment.getContent().TypeOfGrade != 1)
- #if($!override)$override#else$submission.GradeDisplay#end
- #else
- $tlang.getString("gen.nograd")
- #end
- #if ($gradeTypeTable.get($assignment.getContent().getTypeOfGrade()) == $!tlang.getString("points"))
- ($tlang.getString("grade.max") $assignment.getContent().getMaxGradePointDisplay())
-
-
- #if($scoringComponentEnabled)
- #parse ("/vm/assignment/chef_assignments_scoring_agent.vm")
- #end
-
- #end
-
-
-
- #else
-
-
- $tlang.getString("gen.grasca")
-
-
- $gradeScale
- #if ($gradeTypeTable.get($assignment.getContent().getTypeOfGrade()) == $!tlang.getString("points"))
- ($tlang.getString("grade.max") $assignment.getContent().getMaxGradePointDisplay())
-
-
- #if($scoringComponentEnabled)
- #parse ("/vm/assignment/chef_assignments_scoring_agent.vm")
- #end
-
- #end
-
-
- #end
- #end
+ ## Display content-review results when appropriate. If the assignment is non-electronic, we show content-review results if they exist
+ ## (happens when accepted submission type switched from something else)
+## TODO Content Review Service
+## #if($allowReviewService && $assignment.getContent().AllowReviewService && $assignment.getContent().AllowStudentViewReport && ($assignment.getContent().getTypeOfSubmission() != 4 || $submission.getContentReviewResults().size() > 0))
+##
+##
+## $reviewServiceName $tlang.getString("review.report")
+##
+##
+## #if (!$submission)
+## $tlang.getString("review.notavail")
+## #else
+## #set($reviewResults=$submission.ContentReviewResults)
+## #if ($reviewResults.size() >= 3)
+##
+##
+## ## TODO: reconsider for i18n
+## $reviewResults.size() $tlang.getString("review.reports")
+##
+##
+## #end
+## #foreach ($reviewResult in $reviewResults)
+##
+## #set ($props = $reviewResult.getContentResource().Properties)
+##
+## #if (!$reviewResult.getReviewReport().equals("Error"))#end
+##
+## #if (!$reviewResult.getReviewReport().equals("Error")) #end
+##
+## #if ($reviewResult.isInline())
+## $tlang.getString("submission.inline")
+## #else
+## $validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
+## #end
+##
+## #end
+## #if ($reviewResults.size() >= 3)
+##
+## #end
+## #end
+##
+##
+##
+## #end
+
+## TODO Submission Log
+## #if ($!submission && $!submission.getSubmissionLog().size() > 0)
+##
+## $tlang.getString("gen.history")
+##
+## #foreach ($entry in $submission.getSubmissionLog())
+## $entry
+## #end
+##
+##
+## #end
+
+## TODO Content Review Service
+## #if($assignment.getContent().AllowReviewService && $assignment.getContent().AllowStudentViewReport)
+## $submission.getReviewReport()
+## #end
+
+
+ $tlang.getString("gen.instr")
+
+
+ #if ($!assignment.Instructions.length() > 0)
+ $validator.escapeHtmlFormattedText($!assignment.Instructions)
+ #end
+
+ ## Assignment Attachments
+ #set ($attachments = $assignment.Attachments)
+ #if ($attachments)
+ #set ($size = $attachments.size())
+ #if ($size < 1)
+ $tlang.getString("gen.noatt")
+ #else
+
+ $tlang.getString("gen.addres2")
+
+
+ #end
+ #end
+
+ ## Assignment Model Answer
+ #if($allowViewModelAnswer)
+
+
+
+ $tlang.getString('modelAnswer')
+
+
+
$validator.escapeHtml($!assignmentModelAnswerItem.getText())
+ #set ($mAttachments = $!assignmentModelAnswerItem.getAttachmentObjectSet())
+
+ #set ($size = 0)
+ #set ($props = false)
+ #foreach ($attachment in $!mAttachments)
+ #set ($props = $attachment.Properties)
+ #if ($!props)
+ #set ($size = $size + 1)
+ #end
+ #end
+ #if ($size == 0)
+ <
+ #if ($!assignment.TypeOfSubmission.ordinal() == 5)
+ $tlang.getString("gen.noatt.single")
+ #else
+ $tlang.getString("gen.noatt")
+ #end
+
+ #else
+ #foreach ($attachment in $mAttachments)
+ #set ($props = false)
+ #set ($props = $attachment.Properties)
+ #if ($!props)
+
+ #if ($props.getBooleanProperty($props.NamePropIsCollection))
+
+ #else
+
+ #end
+ $validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
+ #propertyDetails($props)
+
+ #end
+ #end
+ #end
+
+
+ #end
+ #if ($!allowReadAssignmentNoteItem)
+
+
+
+ $tlang.getString('note.label')
+
+
+ $validator.escapeHtml($!assignmentNoteItem.getNote())
+
+ #end
+
+ ## All Purpose
+ #if ($!allowViewAllPurposeItem)
+
+
+
+ $tlang.getString('allPurpose')
+
+
+
$validator.escapeHtml($!assignmentAllPurposeItem.getTitle())
+
$validator.escapeHtml($!assignmentAllPurposeItem.getText())
+ #set ($aAttachments = $!assignmentAllPurposeItem.getAttachmentObjectSet())
+
+ #set ($size = 0)
+ #set ($props = false)
+ #foreach ($attachment in $!aAttachments)
+ #set ($props = $attachment.Properties)
+ #if ($!props)
+ #set ($size = $size + 1)
+ #end
+ #end
+ #if ($size == 0)
+
+ #if ($!assignment.TypeOfSubmission.ordinal() == 5)
+ $tlang.getString("gen.noatt.single")
+ #else
+ $tlang.getString("gen.noatt")
+ #end
+
+ #else
+ #foreach ($attachment in $aAttachments)
+ #set ($props = false)
+ #set ($props = $attachment.Properties)
+ #if ($!props)
+
+ #if ($props.getBooleanProperty($props.NamePropIsCollection))
+
+ #else
+
+ #end
+ $validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
+ #propertyDetails($props)
+
+ #end
+ #end
+ #end
+
+
+ #end
+ #if ($taggable)
+ #parse ("/vm/assignment/chef_assignments_tags_list.vm")
+ #end
+
+ ## show instructor feedback if the submission is (1) graded and release or (2) returned
+ #if (($submission.Graded && $submission.GradeReleased) || $submission.Returned)
+ ## show feedback text when submission is released or returned
+ #if ($!submission.FeedbackText && ($submission.FeedbackText.length() > 0))
+ $tlang.getString("gen.orisub2")
+ $submission.FeedbackText
+ #else
+ #set ($text = $submission.SubmittedText)
+ #if ($!text && $text.length() > 0)
+ $tlang.getString("gen.orisub")
+ $submission.SubmittedText
+ #end
+ #end
+ #else
+ #set ($text = $submission.SubmittedText)
+ #if ($!text && $text.length() > 0)
+ $tlang.getString("gen.orisub")
+ $submission.SubmittedText
+ #end
+ #end
- ## Display content-review results when appropriate. If the assignment is non-electronic, we show content-review results if they exist
- ## (happens when accepted submission type switched from something else)
- #if($allowReviewService && $assignment.getContent().AllowReviewService && $assignment.getContent().AllowStudentViewReport && ($assignment.getContent().getTypeOfSubmission() != 4 || $submission.getContentReviewResults().size() > 0))
-
-
- $reviewServiceName $tlang.getString("review.report")
-
-
- #if (!$submission)
- $tlang.getString("review.notavail")
- #else
- #set($reviewResults=$submission.ContentReviewResults)
- #if ($reviewResults.size() >= 3)
-
-
- ## TODO: reconsider for i18n
- $reviewResults.size() $tlang.getString("review.reports")
-
-
- #end
- #foreach ($reviewResult in $reviewResults)
-
- #set ($props = $reviewResult.getContentResource().Properties)
-
- #if (!$reviewResult.getReviewReport().equals("Error"))#end
-
- #if (!$reviewResult.getReviewReport().equals("Error")) #end
-
- #if ($reviewResult.isInline())
- $tlang.getString("submission.inline")
- #else
- $validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
- #end
-
- #end
- #if ($reviewResults.size() >= 3)
-
- #end
- #end
-
-
-
- #end
- #if ($!submission && $!submission.getSubmissionLog().size() > 0)
-
- $tlang.getString("gen.history")
-
- #foreach ($entry in $submission.getSubmissionLog())
- $entry
- #end
-
-
+ ## Submission Attachments
+ #set ($attachments = $submission.Attachments)
+ #if ($attachments)
+ #set ($size = $attachments.size())
+ #if ($size < 1)
+ $tlang.getString("gen.noattsubmitted")
+ #else
+
+ #if ($assignment.TypeOfSubmission.ordinal() == 5)
+ $tlang.getString("gen.stuatt.single")
+ #else
+ $tlang.getString("gen.stuatt")
+ #end
+
+
+ #foreach ($attachmentReference in $attachments)
+ #set ($reference = $submissionAttachmentReferences.get($attachmentReference))
+ #if ($reference)
+ #set ($props = false)
+ #set ($props = $reference.Properties)
+ #if ($!props)
+
+ #if ($props.getBooleanProperty($props.NamePropIsCollection))
+
+ #else
+
#end
-
- #if($assignment.getContent().AllowReviewService && $assignment.getContent().AllowStudentViewReport)
-
$submission.getReviewReport()
- #end
-
- $tlang.getString("gen.instr")
-
-
- #if ($!assignment.getContent().getInstructions().length()>0)
-
$validator.escapeHtmlFormattedText($!assignment.getContent().getInstructions())
- #else
- #end
- ## assignment attachment
- #set ($attachments = $assignment.getContent().Attachments)
- #set ($size = 0)
- #set ($size = 0)
- #set ($props = false)
- #foreach ($attachment in $attachments)
- #set ($props = $attachment.Properties)
- #if ($!props)
- #set ($size = $size + 1)
- #end
- #end
- #if ($size == 0)
+ #if ($decoratedUrlMap)
+
$validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
+ #else
+
$validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
+ #end
+ #propertyDetails($props)
+
+ #end
+ #end
+ #end
+
+ #end
+ #end
+
+ ## show instructor comment if the submission is (1) graded and release or (2) returned
+ #if (($submission.Graded && $submission.GradeReleased) || $submission.Returned)
+ ## show feedback comment and feedback comment when submission is released or returned
+ #if (($!submission.FeedbackComment) && ($submission.FeedbackComment.length() > 0))
+
$tlang.getString("gen.addinst")
+
$validator.escapeHtmlFormattedText($submission.FeedbackComment)
+ #end
+
+ ## Feedback Attachments
+ #set ($attachments = $submission.feedbackAttachments)
+ #if ($attachments)
+ #set ($size = $attachments.size())
+ #if ($size > 0)
+
+ $tlang.getString("gen.addinstatts")
+
+
+ #end
+ #end
- #else
-
- $tlang.getString("gen.addres2")
-
-
- #end
- ## model answer
- #if($allowViewModelAnswer)
-
$tlang.getString('modelAnswer')
-
-
$validator.escapeHtml($!assignmentModelAnswerItem.getText())
- #set ($mAttachments = $!assignmentModelAnswerItem.getAttachmentObjectSet())
-
- #set ($size = 0)
- #set ($props = false)
- #foreach ($attachment in $!mAttachments)
- #set ($props = $attachment.Properties)
- #if ($!props)
- #set ($size = $size + 1)
- #end
- #end
- #if ($size == 0)
- <
- #if ($submissionType == 5)
- $tlang.getString("gen.noatt.single")
- #else
- $tlang.getString("gen.noatt")
- #end
-
- #else
- #foreach ($attachment in $mAttachments)
- #set ($props = false)
- #set ($props = $attachment.Properties)
- #if ($!props)
-
- #if ($props.getBooleanProperty($props.NamePropIsCollection))
-
- #else
-
- #end
- $validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
- #propertyDetails($props)
-
- #end
- #end
- #end
-
-
- #end
- #if ($!allowReadAssignmentNoteItem)
-
$tlang.getString('note.label')
-
- $validator.escapeHtml($!assignmentNoteItem.getNote())
-
- #end
- ##all purpose
- #if ($!allowViewAllPurposeItem)
-
$tlang.getString('allPurpose')
-
-
$validator.escapeHtml($!assignmentAllPurposeItem.getTitle())
-
$validator.escapeHtml($!assignmentAllPurposeItem.getText())
- #set ($aAttachments = $!assignmentAllPurposeItem.getAttachmentObjectSet())
-
- #set ($size = 0)
- #set ($props = false)
- #foreach ($attachment in $!aAttachments)
- #set ($props = $attachment.Properties)
- #if ($!props)
- #set ($size = $size + 1)
- #end
- #end
- #if ($size == 0)
-
- #if ($submissionType == 5)
- $tlang.getString("gen.noatt.single")
- #else
- $tlang.getString("gen.noatt")
- #end
-
- #else
- #foreach ($attachment in $aAttachments)
- #set ($props = false)
- #set ($props = $attachment.Properties)
- #if ($!props)
-
- #if ($props.getBooleanProperty($props.NamePropIsCollection))
-
- #else
-
- #end
- $validator.escapeHtml($props.getPropertyFormatted($props.NamePropDisplayName))
- #propertyDetails($props)
-
- #end
- #end
- #end
-
-
- #end
- #if ($taggable)
- #parse ("/vm/assignment/chef_assignments_tags_list.vm")
- #end
-
- ##show instructor feedback if the submission is (1) graded and release or (2) returned
- #if (($submission.Graded && $submission.GradeReleased) || $submission.Returned)
- ## show feedback text when submission is released or returned
- #if ($!submission.FeedbackText && ($submission.FeedbackText.length()>0))
-
$tlang.getString("gen.orisub2")
-
$submission.FeedbackFormattedText
- #else
- #set ($text = $submission.getSubmittedText())
- #if ($!text && $text.length() > 0)
-
$tlang.getString("gen.orisub")
-
$submission.getSubmittedText()
- #end
- #end
- #else
- #set ($text = $submission.getSubmittedText())
- #if ($!text && $text.length() > 0)
-
$tlang.getString("gen.orisub")
-
$submission.getSubmittedText()
- #end
- #end
- #set ($submittedAttachments = $submission.VisibleSubmittedAttachments)
- #set ($size = 0)
- #set ($props = false)
- #foreach ($attachment in $submittedAttachments)
- #set ($props = $attachment.Properties)
- #if ($!props)
- #set ($size = $size + 1)
- #end
- #end
- #if ($size == 0)
- ##$tlang.getString("gen.noatt")
- #else
-
- #if ($assignment.getContent().getTypeOfSubmission() == 5)
- $tlang.getString("gen.stuatt.single")
- #else
- $tlang.getString("gen.stuatt")
- #end
-
-
- #end
- ##show instructor comment if the submission is (1) graded and release or (2) returned
- #if (($submission.Graded && $submission.GradeReleased) || $submission.Returned)
- ## show feedback comment and feedback comment when submission is released or returned
- #if (($!submission.FeedbackComment) && ($submission.FeedbackComment.length()>0))
-
$tlang.getString("gen.addinst")
-
$validator.escapeHtmlFormattedText($submission.FeedbackComment)
- #end
- #set ($size = 0)
- #set ($props = false)
- #set ($feedbackAttachments = $submission.FeedbackAttachments)
- #set ($size = 0)
- #set ($props = false)
- #foreach ($attachment in $feedbackAttachments)
- #set ($props = $attachment.Properties)
- #if ($!props)
- #set ($size = $size + 1)
- #end
- #end
- #if ($size == 0)
- #else
-
$tlang.getString("gen.addinstatts")
-
- #end
-
- ##Show reviewer feedback from peer review (if exist and the peer review is closed)
- #if ($peerReviews)
-
$tlang.getString("gen.peerReviews")
-
- #foreach($review in $peerReviews)
-
$review.assessorDisplayName
-
- $tlang.getFormattedMessage("gen.score.display", $review.getScoreDisplay())
-
- #if($!review.getComment() && $review.getComment().length()>0)
-
$tlang.getString("gen.comments")
-
$validator.escapeHtmlFormattedText($review.getComment())
- #end
+ ## Show reviewer feedback from peer review (if exist and the peer review is closed)
+ #if ($peerReviews)
+
$tlang.getString("gen.peerReviews")
+
+ #foreach($review in $peerReviews)
+
$review.assessorDisplayName
+
+ $tlang.getFormattedMessage("gen.score.display", $review.getScoreDisplay())
+
+ #if($!review.getComment() && $review.getComment().length()>0)
+
$tlang.getString("gen.comments")
+
$validator.escapeHtmlFormattedText($review.getComment())
+ #end
-
- #end
-
- #end
- #end
-
-
+
+ #end
+
+ #end
+ #end
+
+