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,16 +1,18 | |||||
|
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)}." |
|
11 | %br/ |
|
13 | %br/ |
|
12 | = "Score: #{(submission.points*100/submission.problem.full_score).to_i} " if GraderConfiguration['ui.show_score'] |
|
14 | = "Score: #{(submission.points*100/submission.problem.full_score).to_i} " if GraderConfiguration['ui.show_score'] |
|
13 | = " [" |
|
15 | = " [" |
|
14 | %tt |
|
16 | %tt |
|
15 | = submission.grader_comment |
|
17 | = submission.grader_comment |
|
16 | = "]" |
|
18 | = "]" |
@@ -4,21 +4,22 | |||||
|
4 | Task List |
|
4 | Task List |
|
5 | %br/ |
|
5 | %br/ |
|
6 | - @problems.each do |problem| |
|
6 | - @problems.each do |problem| |
|
7 | = link_to problem.name, :action => 'submission', :id => problem.name |
|
7 | = link_to problem.name, :action => 'submission', :id => problem.name |
|
8 |
|
8 | ||
|
9 | - if @problem!=nil |
|
9 | - if @problem!=nil |
|
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 |
|
22 | = render :partial => 'submission', :collection => @submissions |
|
23 | = render :partial => 'submission', :collection => @submissions |
|
23 | - else |
|
24 | - else |
|
24 | No submission |
|
25 | No submission |
You need to be logged in to leave comments.
Login now