Description:
[web] improving readability of test_interface, re: ticket #10
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@141 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
r64:f6cdb5f921b2 - - 5 files changed: 6 inserted, 5 deleted
@@ -8,6 +8,7 | |||
|
8 | 8 | def index |
|
9 | 9 | @user = User.find(session[:user_id]) |
|
10 | 10 | prepare_index_information |
|
11 | + @test_requests = @user.test_requests | |
|
11 | 12 | end |
|
12 | 13 | |
|
13 | 14 | def submit |
@@ -4,7 +4,7 | |||
|
4 | 4 | |
|
5 | 5 | has_and_belongs_to_many :roles |
|
6 | 6 | |
|
7 |
- has_many :test_requests, :order => " |
|
|
7 | + has_many :test_requests, :order => "submitted_at DESC" | |
|
8 | 8 | |
|
9 | 9 | validates_presence_of :login |
|
10 | 10 | validates_presence_of :full_name |
@@ -3,9 +3,9 | |||
|
3 | 3 | %td= test_request.problem.full_name |
|
4 | 4 | %td= test_request.submission.number |
|
5 | 5 | %td= test_request.status_str |
|
6 | - %td= test_request.running_stat or '' | |
|
6 | + %td= simple_format((test_request.running_stat or '')) | |
|
7 | 7 | %td |
|
8 | 8 | - if test_request.output_file_name!=nil |
|
9 | 9 | = link_to '[output]', :action => 'read', :id => test_request.id |
|
10 | 10 | %td= test_request.grader_comment or '' |
|
11 | - %td= test_request.compiler_message or '' | |
|
11 | + %td= simple_format((test_request.compiler_message or '')) |
You need to be logged in to leave comments.
Login now