diff --git a/app/views/exercises/external_users/statistics.html.slim b/app/views/exercises/external_users/statistics.html.slim index 02e66537..d1ee55ac 100644 --- a/app/views/exercises/external_users/statistics.html.slim +++ b/app/views/exercises/external_users/statistics.html.slim @@ -34,6 +34,7 @@ h1 datalist#datapoints - index=0 - @submissions.each do |submission| + - next if submission.files.blank? option data-submission=submission =index - index += 1 @@ -56,8 +57,8 @@ h1 - row_classes += ' within_grace_period' if this.is_a?(Submission) && this.within_grace_period? - row_classes += ' after_late_deadline' if this.is_a?(Submission) && this.after_late_deadline? tr data-id=this.id class=row_classes - td.clickable = this.created_at.strftime("%F %T") - if this.is_a?(Submission) + td.clickable = this.created_at.strftime("%F %T") td = this.cause td = this.score td.align-middle @@ -68,6 +69,7 @@ h1 .unit-test-result.unknown-result title=[run.file&.name_with_extension, run.output].join("\n").strip td = @working_times_until[index] if index > 0 if policy(@exercise).detailed_statistics? - elsif this.is_a? UserExerciseIntervention + td = this.created_at.strftime("%F %T") td = this.intervention.name td = td =