diff --git a/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_list_submissions.vm b/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_list_submissions.vm
index aa36478f97f5..b4c73a5bfd60 100644
--- a/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_list_submissions.vm
+++ b/assignment/tool/src/webapp/vm/assignment/chef_assignments_instructor_list_submissions.vm
@@ -412,7 +412,7 @@ function printView(url) {
#set ($size = $submission.Attachments.size())
- #if ($size > 0)
+ #if ($size > 0 && $submission.submitted)
#end
|
@@ -422,7 +422,6 @@ function printView(url) {
#set($submittedText = $!submission.submittedText)
#set($submittedAttachments = $submission.Attachments)
#if ($!submittedText.length() > 0 || $!submittedAttachments.size() > 0 )
- $tlang.getString("gen.dra2")
#end
#end
@@ -471,7 +470,6 @@ function printView(url) {
#set($submittedText = $!submission.submittedText)
#set($submittedAttachments = $submission.Attachments)
#if ($submittedText && !$submittedText.isEmpty() || $!submittedAttachments.size() > 0 )
- $tlang.getString("gen.dra2")
#end
#end
@@ -503,20 +501,22 @@ function printView(url) {
#end
- #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))
$tlang.getString("gen.late2")
#end
#end
- #if ($!submittedBy)
+ #if ($!submittedBy && $submission.submitted)
$tlang.getString("listsub.submitted.by") $!submittedBy.sortName ($tlang.getString("listsub.submitted.on.behalf") $formattedText.escapeHtml($submitterSortName))
#end
|
- #if ($!submission)
+ #if ($!submission && $submission.submitted)
$!service.getSubmissionStatus($submission.Id)
+ #elseif (!$!submission.submitted)
+ $tlang.getString("listsub.nosub")
#end
|
#if ($assignment.AllowPeerAssessment)