Description:
add link to submission #id in main/submissions
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r452:d6065f889669 - - 2 files changed: 3 inserted, 0 deleted
@@ -1,10 +1,12 | |||||
|
1 |
|
1 | ||
|
2 | %tr{:class => ((submission_counter%2==0) ? "info-even" : "info-odd")} |
|
2 | %tr{:class => ((submission_counter%2==0) ? "info-even" : "info-odd")} |
|
3 | %td.info{:align => "center"} |
|
3 | %td.info{:align => "center"} |
|
4 | = submission_counter+1 |
|
4 | = submission_counter+1 |
|
|
5 | + %td.info{:align => "center"} | ||
|
|
6 | + = link_to "##{submission.id}", controller: :graders, action: :submission, id: submission.id | ||
|
5 | %td.info= format_short_time(submission.submitted_at) |
|
7 | %td.info= format_short_time(submission.submitted_at) |
|
6 | %td.info{:align => "center"} |
|
8 | %td.info{:align => "center"} |
|
7 | = link_to('[load]',{:action => 'source', :id => submission.id}) |
|
9 | = link_to('[load]',{:action => 'source', :id => submission.id}) |
|
8 | %td.info |
|
10 | %td.info |
|
9 | - if submission.graded_at!=nil |
|
11 | - if submission.graded_at!=nil |
|
10 | = "Graded at #{format_short_time(submission.graded_at)}." |
|
12 | = "Graded at #{format_short_time(submission.graded_at)}." |
@@ -10,12 +10,13 | |||||
|
10 | %h2= "Task: #{@problem.full_name} (#{@problem.name})" |
|
10 | %h2= "Task: #{@problem.full_name} (#{@problem.name})" |
|
11 |
|
11 | ||
|
12 | - if @submissions!=nil |
|
12 | - if @submissions!=nil |
|
13 | - if @submissions.length>0 |
|
13 | - if @submissions.length>0 |
|
14 | %table.info |
|
14 | %table.info |
|
15 | %tr.info-head |
|
15 | %tr.info-head |
|
|
16 | + %th.info No. | ||
|
16 | %th.info # |
|
17 | %th.info # |
|
17 | %th.info At |
|
18 | %th.info At |
|
18 | %th.info Source |
|
19 | %th.info Source |
|
19 | %th.info Result |
|
20 | %th.info Result |
|
20 | %th.info{:width => "300px"} |
|
21 | %th.info{:width => "300px"} |
|
21 | Compiler message |
|
22 | Compiler message |
You need to be logged in to leave comments.
Login now