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
File last commit:
Show/Diff file:
Action:
app/views/test/result.html.haml | 38 lines | 1.1 KiB | text/x-haml | HamlLexer |
jittat
[web] more files (cont. from rev 159)...
r80 = user_title_bar(@user)
jittat
[web] changed column type for running_time in test_requests, display new stat info...
r82 %div{:style => "text-align: center; font-size: 12px"}
jittat
[web] fixed test page crashes when problem is deleted...
r101 Problem:
- if @test_request.problem!=nil
= "#{@test_request.problem.full_name}"
- else
= "(n/a)"
jittat
[web] more files (cont. from rev 159)...
r80 %br/
= "Submission: #{@test_request.submission.number}"
%br/
= "Test submitted at: #{format_short_time(@test_request.submitted_at)}"
%br/
jittat
[web] changed column type for running_time in test_requests, display new stat info...
r82 = "Execution time: #{@test_request.running_time} s."
%br/
jittat
[web] improved test result display...
r84 = "Memory usage: #{@test_request.memory_usage}kb"
jittat
[web] changed column type for running_time in test_requests, display new stat info...
r82 %br/
%b= @test_request.exit_status
%br/
jittat
[web] more files (cont. from rev 159)...
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 ''))
jittat
[web] improved test result display...
r84 %b Input (first 2kb)
jittat
[web] more files (cont. from rev 159)...
r80 %div{:style => "border: 1px solid black; background: lightgrey"}
- if @test_request.input_file_name!=nil
jittat
some formatting...
r115 %pre
= h(read_textfile(@test_request.input_file_name,2048))
jittat
[web] more files (cont. from rev 159)...
r80
jittat
[web] improved test result display...
r84 %b Output (first 2kb)
jittat
[web] more files (cont. from rev 159)...
r80 %div{:style => "border: 1px solid black; background: lightgrey"}
- if @test_request.output_file_name!=nil
jittat
some formatting...
r115 %pre
= h(read_textfile(@test_request.output_file_name,2048))
jittat
[web] more files (cont. from rev 159)...
r80 - else
(no output)