Show More
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
Commit Description:
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@359 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/test/result.html.haml
| 40 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 | ||
|
r162 | = "" | ||
|
r115 | = 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 | ||
|
r162 | = "" | ||
|
r115 | = h(read_textfile(@test_request.output_file_name,2048)) | ||
|
r80 | - else | ||
(no output) | ||||