Show More
Commit Description:
allow ta to view problem stat
Commit Description:
allow ta to view problem stat
References:
File last commit:
Show/Diff file:
Action:
app/views/graders/test_request.html.haml
| 40 lines
| 1.3 KiB
| text/x-haml
| HamlLexer
|
|
|
r105 | %h1= "Test Request: #{@test_request.id}" | ||
| %p | ||||
| User: | ||||
| = "#{@test_request.user.login}" | ||||
| %br/ | ||||
| Problem: | ||||
| - if @test_request.problem!=nil | ||||
| = "#{@test_request.problem.full_name}" | ||||
| - else | ||||
| = "(n/a)" | ||||
| %br/ | ||||
| = "Submission: #{@test_request.submission.number}" | ||||
| = link_to '[view submission]', :action => 'submission', :id => @test_request.submission.id | ||||
| %br/ | ||||
| = "Test submitted at: #{format_short_time(@test_request.submitted_at)}" | ||||
| %br/ | ||||
| = "Execution time: #{@test_request.running_time} s." | ||||
| %br/ | ||||
| = "Memory usage: #{@test_request.memory_usage}kb" | ||||
| %br/ | ||||
| %b= @test_request.exit_status | ||||
| %br/ | ||||
| - if @test_request.compiler_message!=nil and @test_request.compiler_message!='' | ||||
| %b Compiler Message | ||||
| %div{:style => "border: 1px solid black; background: lightgrey"} | ||||
|
|
r370 | = simple_format(truncate((@test_request.compiler_message or ''), :length => 200)) | ||
|
|
r105 | |||
| %b Input (first 2kb) | ||||
| %div{:style => "border: 1px solid black; background: lightgrey"} | ||||
| - if @test_request.input_file_name!=nil | ||||
| = simple_format(read_textfile(@test_request.input_file_name,2048)) | ||||
| %b Output (first 2kb) | ||||
| %div{:style => "border: 1px solid black; background: lightgrey"} | ||||
| - if @test_request.output_file_name!=nil | ||||
| = simple_format(read_textfile(@test_request.output_file_name,2048)) | ||||
| - else | ||||
| (no output) | ||||
