Description:
reporting in test_request git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@97 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

r45:ed4dcbabf27d - - 2 files changed: 7 inserted, 3 deleted

@@ -1,11 +1,11
1 1 %tr.test-request
2 2 %td= test_request_counter +1
3 3 %td= test_request.problem.full_name
4 - %td= test_request.submission_id
4 + %td= test_request.submission.number
5 5 %td= test_request.status_str
6 - %td= test_request.grader_comment or ''
7 - %td= test_request.compiler_message or ''
8 6 %td= test_request.running_stat or ''
9 7 %td
10 8 - if test_request.output_file_name!=nil
11 9 = link_to '[output]', :action => 'read', :id => test_request.id
10 + %td= test_request.grader_comment or ''
11 + %td= test_request.compiler_message or ''
@@ -16,54 +16,58
16 16 submissionSelect = document.getElementById("test_request_submission_number");
17 17 submissionSelect.options.length = 0;
18 18 for(i=0; i<count; i++) {
19 19 submissionSelect.options[i] = new Option(""+(i+1),""+(i+1),false,false);
20 20 }
21 21 }
22 22 </script>
23 23
24 24 <% form_for :test_request, nil,
25 25 :url => { :action => 'submit'},
26 26 :html => { :multipart => true } do |f| %>
27 27 <table>
28 28 <tr>
29 29 <td>Task:</td>
30 30 <td>
31 31 <%= select(:test_request,
32 32 :problem_id,
33 33 @problems.collect {|p| [p.name, p.id]}, {},
34 34 { :onclick => "updateSubmissionList();" }) %>
35 35 </td>
36 36 </tr>
37 37 <tr>
38 38 <td>Submission:</td>
39 39 <td>
40 40 <%= select(:test_request,
41 41 :submission_number,
42 42 (1..@submissions[0].number).collect {|n| [n,n]}) %>
43 43 </td>
44 44 </tr>
45 45 <tr>
46 46 <td>Input data:</td>
47 47 <td><%= f.file_field :input_file %></td>
48 48 <tr>
49 49 <td colspan="2">
50 50 <%= submit_tag 'submit' %>
51 51 </td>
52 52 </tr>
53 53 </table>
54 54 <% end %>
55 55
56 56 <h3>Previous requests</h3>
57 57
58 58 <table border="1">
59 59 <tr>
60 60 <th></td>
61 61 <th>problem</th>
62 62 <th>#</th>
63 63 <th>status</th>
64 + <th>running stat</th>
65 + <th>output</th>
66 + <th>grading comment</th>
67 + <th>compiler message</th>
64 68 </tr>
65 69 <%= render :partial => 'test_request', :collection => @user.test_requests %>
66 70 </table>
67 71
68 72 <% end %>
69 73
You need to be logged in to leave comments. Login now