Description:
some formatting
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@235 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r115:f5b658d3d5ed - - 1 file changed: 4 inserted, 2 deleted
@@ -5,32 +5,34 | |||
|
5 | 5 | - if @test_request.problem!=nil |
|
6 | 6 | = "#{@test_request.problem.full_name}" |
|
7 | 7 | - else |
|
8 | 8 | = "(n/a)" |
|
9 | 9 | %br/ |
|
10 | 10 | = "Submission: #{@test_request.submission.number}" |
|
11 | 11 | %br/ |
|
12 | 12 | = "Test submitted at: #{format_short_time(@test_request.submitted_at)}" |
|
13 | 13 | %br/ |
|
14 | 14 | = "Execution time: #{@test_request.running_time} s." |
|
15 | 15 | %br/ |
|
16 | 16 | = "Memory usage: #{@test_request.memory_usage}kb" |
|
17 | 17 | %br/ |
|
18 | 18 | %b= @test_request.exit_status |
|
19 | 19 | %br/ |
|
20 | 20 | |
|
21 | 21 | - if @test_request.compiler_message!=nil and @test_request.compiler_message!='' |
|
22 | 22 | %b Compiler Message |
|
23 | 23 | %div{:style => "border: 1px solid black; background: lightgrey"} |
|
24 | 24 | = simple_format((@test_request.compiler_message or '')) |
|
25 | 25 | |
|
26 | 26 | %b Input (first 2kb) |
|
27 | 27 | %div{:style => "border: 1px solid black; background: lightgrey"} |
|
28 | 28 | - if @test_request.input_file_name!=nil |
|
29 | - = simple_format(read_textfile(@test_request.input_file_name,2048)) | |
|
29 | + %pre | |
|
30 | + = h(read_textfile(@test_request.input_file_name,2048)) | |
|
30 | 31 | |
|
31 | 32 | %b Output (first 2kb) |
|
32 | 33 | %div{:style => "border: 1px solid black; background: lightgrey"} |
|
33 | 34 | - if @test_request.output_file_name!=nil |
|
34 | - = simple_format(read_textfile(@test_request.output_file_name,2048)) | |
|
35 | + %pre | |
|
36 | + = h(read_textfile(@test_request.output_file_name,2048)) | |
|
35 | 37 | - else |
|
36 | 38 | (no output) |
You need to be logged in to leave comments.
Login now