Skip to content

Commit

Permalink
SAK-43796 assignments > submission list > don't display drafts (sakai…
Browse files Browse the repository at this point in the history
…project#8658)

(cherry picked from commit aaba9ea)
  • Loading branch information
bjones86 authored and ern committed Oct 30, 2020
1 parent 7136440 commit cd29904
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ function printView(url) {
</td>
<td headers="attachment" class="attach">
#set ($size = $submission.Attachments.size())
#if ($size > 0)
#if ($size > 0 && $submission.submitted)
<img src="#imageLink("sakai/attachments.gif")" border="0" alt="$tlang.getString("gen.att")" width="15" height="15" class="attachmentsIcon" />
#end
</td>
Expand All @@ -422,7 +422,6 @@ function printView(url) {
#set($submittedText = $!submission.submittedText)
#set($submittedAttachments = $submission.Attachments)
#if ($!submittedText.length() > 0 || $!submittedAttachments.size() > 0 )
<span class="highlight">$tlang.getString("gen.dra2") </span>
#end
#end

Expand Down Expand Up @@ -471,7 +470,6 @@ function printView(url) {
#set($submittedText = $!submission.submittedText)
#set($submittedAttachments = $submission.Attachments)
#if ($submittedText && !$submittedText.isEmpty() || $!submittedAttachments.size() > 0 )
<span class="highlight">$tlang.getString("gen.dra2") </span>
#end
#end

Expand Down Expand Up @@ -503,20 +501,22 @@ function printView(url) {
</td>
#end
<td headers="submitted">
#if ($!submission && $submission.DateSubmitted)
#if ($!submission && $submission.DateSubmitted && $submission.submitted)
#set($submitTime = $submission.DateSubmitted)
#if ($!submitTime) $!service.getUsersLocalDateTimeString($submitTime) #end
#if ($!submitTime && $submitTime.isAfter($assignment.DueDate))
<span class="highlight">$tlang.getString("gen.late2")</span>
#end
#end
#if ($!submittedBy)
#if ($!submittedBy && $submission.submitted)
<br /> $tlang.getString("listsub.submitted.by") $!submittedBy.sortName ($tlang.getString("listsub.submitted.on.behalf") $formattedText.escapeHtml($submitterSortName))
#end
</td>
<td headers="status">
#if ($!submission)
#if ($!submission && $submission.submitted)
$!service.getSubmissionStatus($submission.Id)
#elseif (!$!submission.submitted)
$tlang.getString("listsub.nosub")
#end
</td>
#if ($assignment.AllowPeerAssessment)
Expand Down

0 comments on commit cd29904

Please sign in to comment.