diff --git a/app/views/test/result.html.haml b/app/views/test/result.html.haml --- a/app/views/test/result.html.haml +++ b/app/views/test/result.html.haml @@ -27,12 +27,14 @@ %div{:style => "border: 1px solid black; background: lightgrey"} - if @test_request.input_file_name!=nil %pre + = "" = h(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 %pre + = "" = h(read_textfile(@test_request.output_file_name,2048)) - else (no output)