Show filename and sort by it for statistic page

This commit is contained in:
Sebastian Serth
2021-01-19 12:37:05 +01:00
parent 4bb2c5f7c7
commit 2c99c2db62

View File

@ -55,11 +55,11 @@ h1 = "#{@exercise} (external user #{link_to_if(policy(@external_user).show?, @ex
td = this.cause td = this.cause
td = this.score td = this.score
td.align-middle td.align-middle
-this.testruns.each do |run| -this.testruns.includes(:file).order("files.name").each do |run|
- if run.passed - if run.passed
.unit-test-result.positive-result title=run.output .unit-test-result.positive-result title=[run.file.name_with_extension, run.output].join("\n").strip
- else - else
.unit-test-result.unknown-result title=run.output .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? td = @working_times_until[index] if index > 0 if policy(@exercise).detailed_statistics?
- elsif this.is_a? UserExerciseIntervention - elsif this.is_a? UserExerciseIntervention
td = this.intervention.name td = this.intervention.name