Show More
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug...
Commit Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@308 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/test/result.html.haml
| 38 lines
| 1.1 KiB
| text/x-haml
| HamlLexer
|
|
r80 | = user_title_bar(@user) | ||
|
r82 | %div{:style => "text-align: center; font-size: 12px"} | ||
|
r101 | Problem: | ||
- if @test_request.problem!=nil | ||||
= "#{@test_request.problem.full_name}" | ||||
- else | ||||
= "(n/a)" | ||||
|
r80 | %br/ | ||
= "Submission: #{@test_request.submission.number}" | ||||
%br/ | ||||
= "Test submitted at: #{format_short_time(@test_request.submitted_at)}" | ||||
%br/ | ||||
|
r82 | = "Execution time: #{@test_request.running_time} s." | ||
%br/ | ||||
|
r84 | = "Memory usage: #{@test_request.memory_usage}kb" | ||
|
r82 | %br/ | ||
%b= @test_request.exit_status | ||||
%br/ | ||||
|
r80 | |||
- if @test_request.compiler_message!=nil and @test_request.compiler_message!='' | ||||
%b Compiler Message | ||||
%div{:style => "border: 1px solid black; background: lightgrey"} | ||||
= simple_format((@test_request.compiler_message or '')) | ||||
|
r84 | %b Input (first 2kb) | ||
|
r80 | %div{:style => "border: 1px solid black; background: lightgrey"} | ||
- if @test_request.input_file_name!=nil | ||||
|
r115 | %pre | ||
= h(read_textfile(@test_request.input_file_name,2048)) | ||||
|
r80 | |||
|
r84 | %b Output (first 2kb) | ||
|
r80 | %div{:style => "border: 1px solid black; background: lightgrey"} | ||
- if @test_request.output_file_name!=nil | ||||
|
r115 | %pre | ||
= h(read_textfile(@test_request.output_file_name,2048)) | ||||
|
r80 | - else | ||
(no output) | ||||