Description:
[web] improved test result display git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@166 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r84:15a7f2a094fe - - 3 files changed: 12 inserted, 11 deleted

@@ -3,13 +3,16
3 3 = format_short_time(test_request.submitted_at)
4 4 %td= test_request.problem.full_name
5 5 %td{:align => "center"}
6 6 = test_request.submission.number
7 7 %td{:align => "center"}
8 8 = test_request.status_str
9 - %td= simple_format((test_request.running_stat or ''))
10 9 %td{:align => "center"}
11 10 - if test_request.output_file_name!=nil
12 - = link_to '[output]', :action => 'read', :id => test_request.id
13 - %td= test_request.grader_comment or ''
14 - %td= simple_format((test_request.compiler_message or ''))
15 - %td= link_to '[view]', :action => 'result', :id => test_request.id
11 + = link_to '[download]', :action => 'read', :id => test_request.id
12 + %td{:align => "center"}
13 + - if test_request.compiler_message!=nil and test_request.compiler_message!=''
14 + = "yes"
15 + - else
16 + = "no"
17 + %td{:align => "center"}
18 + = link_to '[view]', :action => 'result', :id => test_request.id
@@ -67,17 +67,15
67 67 <table class="info">
68 68 <tr class="info-head">
69 69 <th>at</th>
70 70 <th>problem</th>
71 71 <th>sub #</th>
72 72 <th>status</th>
73 - <th>running stat</th>
74 73 <th>output (first 2kb)</th>
75 - <th>grading comment</th>
76 74 <th>compiler message</th>
77 - <th>Detail</th>
75 + <th>detail</th>
78 76 </tr>
79 77 <%= render :partial => 'test_request', :collection => @test_requests %>
80 78 </table>
81 79
82 80 <% end %>
83 81
@@ -6,27 +6,27
6 6 = "Submission: #{@test_request.submission.number}"
7 7 %br/
8 8 = "Test submitted at: #{format_short_time(@test_request.submitted_at)}"
9 9 %br/
10 10 = "Execution time: #{@test_request.running_time} s."
11 11 %br/
12 - = "Memory usage: #{@test_request.memory_usage}"
12 + = "Memory usage: #{@test_request.memory_usage}kb"
13 13 %br/
14 14 %b= @test_request.exit_status
15 15 %br/
16 16
17 17 - if @test_request.compiler_message!=nil and @test_request.compiler_message!=''
18 18 %b Compiler Message
19 19 %div{:style => "border: 1px solid black; background: lightgrey"}
20 20 = simple_format((@test_request.compiler_message or ''))
21 21
22 - %b Input
22 + %b Input (first 2kb)
23 23 %div{:style => "border: 1px solid black; background: lightgrey"}
24 24 - if @test_request.input_file_name!=nil
25 25 = simple_format(read_textfile(@test_request.input_file_name,2048))
26 26
27 - %b Output
27 + %b Output (first 2kb)
28 28 %div{:style => "border: 1px solid black; background: lightgrey"}
29 29 - if @test_request.output_file_name!=nil
30 30 = simple_format(read_textfile(@test_request.output_file_name,2048))
31 31 - else
32 32 (no output)
You need to be logged in to leave comments. Login now