#if ($allowAddAssignment || ($withGrade && $!allowGradeSubmission)) ## for user who cannot create assignment nor grade submission, no need to show "Assignment List" link at all since there is really no other toolbar choices #navBarHREF( $allowAddAssignment $withGrade $allowGradeSubmission $allowAddAssignment $allowRecoverAssignment $allowAllGroups $assignmentscheck $allowUpdateSite $enableViewOption $view "" ) #end #if ($alertMessage)
$tlang.getString("gen.alert") $alertMessage
#end #if (!$!assignments.hasNext())

$tlang.getString("gen.thearecur1")

#else #if ($allowAddAssignment) #if ($!view.equals('stuvie'))
$tlang.getString("stulistassig.selanass1")
#end #else
$tlang.getString("stulistassig.selanass")
#end
#if($!groupFilterEnabled && $!filterGroupIterator.hasNext())
$tlang.getString("newassig.selectmessage")
#end
#pagerPanel("pager1")
#if ($!allowGradeSubmission) #end #if ($!allowGradeSubmission) #if ($!view.equals('lisofass1')) #if ($!showNumSubmissionColumn) #end #end #end #if ($withGrade && $!allowGradeSubmission) #end #if ($!allowRemoveAssignment && $!view.equals('lisofass1')) #end #set ($assignmentCount = 0) #foreach ($assignment in $assignments) #set ($assignmentReference = $!service.assignmentReference($assignment.Id)) #set($assignmentProperties=$!assignment.getProperties()) ## all allow function results #set($allowUpdateAssignment=$!service.allowUpdateAssignment($assignmentReference)) #if (!($!allowAddAssignment && $!view.equals('lisofass1'))) ## get submission instance only if 1) not an instructor type user or 2) is an instructor type user but in student view #set($submission=false) #set($submission=$service.getSubmission($assignment.Id, $user)) #set($submissionReference=$service.submissionReference($assignment.Context, $submission.Id, $assignment.Id)) #set($submissionReturned=$!submission.Returned) #set($submissionSubmitted=$!submission.Submitted) #set($submissionProperties=$!submission.Properties) #set($submitTime=false) #set ($submitTime = $submission.DateSubmitted) #end ## no need to do permission check again, since it was done when the list was constructed #set ($assignmentCount = $assignmentCount + 1) #if ($!allowGradeSubmission) #end #if ($!allowGradeSubmission) #if ($!view.equals('lisofass1')) #if ($!showNumSubmissionColumn) #end #end #end #if ($withGrade && $!allowGradeSubmission) #end #if ($!allowRemoveAssignment && $!view.equals('lisofass1')) #end #if($assignment.getAllowPeerAssessment() && !($allowAddAssignment && $!view.equals('lisofass1'))) #set($reviews = $peerAssessmentItemsMap.get($assignment.Id)) #if ($!allowGradeSubmission) #end #if ($!allowGradeSubmission) #if ($!view.equals('lisofass1')) #if ($!showNumSubmissionColumn) #end #end #end #if ($withGrade && $!allowGradeSubmission) #end #if ($!allowRemoveAssignment && $!view.equals('lisofass1')) #end #if ($!submission && $!service.isPeerAssessmentOpen($!assignment) && $!reviews) #set ($reviewCount = 0) #foreach ($review in $reviews) #set ($reviewCount = $reviewCount + 1) #if ($!allowGradeSubmission) #end #if ($!allowGradeSubmission) #if ($!view.equals('lisofass1')) #if ($!showNumSubmissionColumn) #end #end #end #if ($withGrade && $!allowGradeSubmission) #end #if ($!allowRemoveAssignment && $!view.equals('lisofass1')) #end #end #end #end #end
$tlang.getString("gen.asstit") #if ($sortedBy.equals("title")) #if ($sortedAsc.equals("true")) $tlang.getString( #else $tlang.getString( #end #end $tlang.getString("gen.status") #if ($sortedBy.equals("assignment_status")) #if ($sortedAsc.equals("true")) $tlang.getString( #else $tlang.getString( #end #end $tlang.getString("gen.duedat") #if ($sortedBy.equals("duedate")) #if ($sortedAsc.equals("true")) $tlang.getString( #else $tlang.getString( #end #end
#if (($!allowAddAssignment || $!allowUpdateAssignment || $!service.allowGradeSubmission($assignmentReference)) && $!view.equals('lisofass1')) #assignmentTitleIcon($assignment) ## normal instructor view #if ($assignment.Draft && $!allowUpdateAssignment ) #else #end #if ($!assignment.draft) $tlang.getString("gen.dra2") #end $validator.escapeHtml($!assignment.Title) #if ($assignment.getContentReview()) $reviewIndicator #end #if ($rubricsService.hasAssociatedRubric("sakai.assignment", $assignment.getId())) #end
#set($prevAction=false) #if ($!allowUpdateAssignment)#set($prevAction=true)$!tlang.getString("gen.revi") $validator.escapeHtml($!assignment.Title)#end #if ($allowAddAssignment&&$!allowUpdateAssignment)#if($prevAction) |#else#set($prevAction=true)#end$!tlang.getString("dupli") $validator.escapeHtml($!assignment.Title)#end #if ($taggable && $allowAddAssignment) #foreach ($provider in $providers) #set ($helperInfo = false) #set ($activity = $producer.getActivity($assignment)) #set ($helperInfo = $provider.getActivityHelperInfo($activity.reference)) #if ($helperInfo) #if($prevAction) | #else #set($prevAction=true) #end $!helperInfo.name #end #end #end #if (!$assignment.Draft && $!service.allowGradeSubmission($assignmentReference))#if($prevAction) |#end #set ($gradeScale = $assignment.TypeOfGrade.ordinal()) ## show "view submissions" link for ungraded type of assignment #if ($withGrade && $gradeScale != 1)$!tlang.getString("gen.assign.gra")#else$!tlang.getString("viewsubmissions")#end $validator.escapeHtml($!assignment.getTitle()) #end
#else #if ($!allowAddAssignment) ## still for instructor, different view #if ($!submission && $submitTime) #set($allowResubmitNumber=$!submissionProperties.getProperty($!allowResubmitNumberProp)) #if(!$!allowResubmitNumber.equals("0")) #set($allowResubmitCloseTimeString=$!submissionProperties.getProperty($!allowResubmitCloseTimeProp)) #if($!allowResubmitCloseTimeString) #set($allowResubmitCloseTime=$!TimeService.newTime($!LongObject.parseLong($!allowResubmitCloseTimeString))) #end #end ## if not submitted or returned and still allowed to submit within the due time #assignmentTitleIcon($assignment) #if ($service.canSubmit($assignment)) ## go to view submission page when (1) submission has been returned and allow for resubmit;(2)submission has not been posted yet. #else #end $validator.escapeHtml($assignment.Title) #else #assignmentTitleIcon($assignment) $validator.escapeHtml($assignment.Title) #if ($!allowSubmit) #end #end #else ## SAK-21525 START ## If this assignment has groups, their access controls must take precedence #if ($assignment.TypeOfAccess.Ordinal == 1) #set($groupIds='') #set($groupIds=$assignment.Groups) #if($groupIds != '' && $groupIds.size() > 0) #set($allowSubmit=false) ## If asn.submit is set on at least one of the assignment's authz groups, set allowSubmit to true #foreach($groupId in $groupIds) #if($AuthzGroupService.isAllowed($user.getId(),'asn.submit',$groupId)) #set($allowSubmit=true) #end #end #end #end ## SAK-21525 END #if($allowSubmit) ## for those who can submit #if ($submission) ## is there a submission already? #set($allowResubmitNumber=$!submissionProperties.getProperty($!allowResubmitNumberProp)) #if(!$!allowResubmitNumber.equals("0")) #set($allowResubmitCloseTimeString=$!submissionProperties.getProperty($!allowResubmitCloseTimeProp)) #if($!allowResubmitCloseTimeString) #set($allowResubmitCloseTime=$!TimeService.newTime($!LongObject.parseLong($!allowResubmitCloseTimeString))) #end #end ## if not submitted or returned and still allowed to submit within the due time #if ($service.canSubmit($assignment)) ## if assignment honor pledge is enabled and the student hasn't agreed #if ($assignment.HonorPledge && !$submission.HonorPledge) $validator.escapeHtml($assignment.Title) #else ## go to view submission page when (1) submission has been returned and allow for resubmit;(2)submission has not been posted yet. #assignmentTitleIcon($assignment) $validator.escapeHtml($assignment.Title) #end #else #assignmentTitleIcon($assignment) $validator.escapeHtml($assignment.Title) #end #else #assignmentTitleIcon($assignment) #if ($assignment.HonorPledge) $validator.escapeHtml($assignment.Title) #else $validator.escapeHtml($assignment.Title) #end #end #if ($taggable && $allowAddAssignment)
#set($prevAction=false) #foreach ($provider in $providers) #set ($activityHelperInfo = false) #set ($activity = $producer.getActivity($assignment)) #set ($activityHelperInfo = $provider.getActivityHelperInfo($activity.reference)) #if ($activityHelperInfo) #if($prevAction) | #else #set($prevAction=true) #end $!activityHelperInfo.name #end #if ($!submission) #set ($itemHelperInfo = false) #set ($item = $producer.getItem($submission, $user.getId())) #set ($itemHelperInfo = $provider.getItemHelperInfo($item.reference)) #if ($itemHelperInfo) #if($prevAction) | #else #set($prevAction=true) #end $!itemHelperInfo.name #end #end #end
#end #else $validator.escapeHtml($assignment.Title) #end #end #set ($deleted = false) #set ($deleted = $assignment.Deleted) #if ($!deleted.equalsIgnoreCase("true")) $tlang.getString("stulistassig.asshasbee1") #end #end
#if ($allowAddAssignment && $!view.equals('lisofass1')) $!service.getAssignmentStatus($assignment.Id) #else #if ($!submission) $!service.getSubmissionStatus($submission.Id) #if ($submission.Submitted) #if ($assignment.DueDate && $submission.DateSubmitted && $submission.DateSubmitted.isAfter($assignment.DueDate)) $tlang.getString("gen.late2") #end #end #else $tlang.getString("gen.notsta") #end #end #if (!$assignment.HideDueDate || $!allowUpdateAssignment) ##Instructors can still see the due date $!service.getUsersLocalDateTimeString($!assignment.DueDate) #end
$validator.escapeHtml($assignment.Title) $tlang.getString("peerAssessmentName") #if ($!submission) #if($!service.isPeerAssessmentPending($!assignment)) #if ($submission.Submitted) $tlang.getString("peerassessment.notOpen") #else $tlang.getString("peerassessment.submissionReq") #end #else #if(!$reviews || $reviews.size() == 0) $tlang.getString("peerassessment.notOpen") #else #set($completedReviews = true) #set($anyDraftReviews = false) #set($anyCompleteReviews = false) #foreach ($review in $reviews) #if(!$review.getSubmitted()) #set($completedReviews = false) #if($review.isDraft()) #set($anyDraftReviews = true) #end #else #set($anyCompleteReviews = true) #end #end #if($completedReviews) $tlang.getString("peerassessment.submitted") #elseif($anyDraftReviews || $anyCompleteReviews) $tlang.getString("peerassessment.incomplete") #else $tlang.getString("peerassessment.notStarted") #end #end #end #else $tlang.getString("peerassessment.submissionReq") #end $!service.getUsersLocalDateTimeString($!assignment.CloseDate) $!service.getUsersLocalDateTimeString($!assignment.PeerAssessmentPeriodDate)
#if($review.getSubmitted()) $tlang.getFormattedMessage("peerassessment.student", $reviewCount)  #else $tlang.getFormattedMessage("peerassessment.student", $reviewCount) #end #if($review.getSubmitted()) $tlang.getString("peerassessment.submitted") #elseif($review.isDraft()) $tlang.getString("peerassessment.draftInProgress") #else $tlang.getString("peerassessment.notStarted") #end
#if ($!allowRemoveAssignment && $!view.equals('lisofass1'))

#end
#end