Description:
add link to submission #id in main/submissions
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r452:d6065f889669 - - 2 files changed: 3 inserted, 0 deleted

@@ -1,16 +1,18
1 1
2 2 %tr{:class => ((submission_counter%2==0) ? "info-even" : "info-odd")}
3 3 %td.info{:align => "center"}
4 4 = submission_counter+1
5 + %td.info{:align => "center"}
6 + = link_to "##{submission.id}", controller: :graders, action: :submission, id: submission.id
5 7 %td.info= format_short_time(submission.submitted_at)
6 8 %td.info{:align => "center"}
7 9 = link_to('[load]',{:action => 'source', :id => submission.id})
8 10 %td.info
9 11 - if submission.graded_at!=nil
10 12 = "Graded at #{format_short_time(submission.graded_at)}."
11 13 %br/
12 14 = "Score: #{(submission.points*100/submission.problem.full_score).to_i} " if GraderConfiguration['ui.show_score']
13 15 = " ["
14 16 %tt
15 17 = submission.grader_comment
16 18 = "]"
@@ -4,21 +4,22
4 4 Task List
5 5 %br/
6 6 - @problems.each do |problem|
7 7 = link_to problem.name, :action => 'submission', :id => problem.name
8 8
9 9 - if @problem!=nil
10 10 %h2= "Task: #{@problem.full_name} (#{@problem.name})"
11 11
12 12 - if @submissions!=nil
13 13 - if @submissions.length>0
14 14 %table.info
15 15 %tr.info-head
16 + %th.info No.
16 17 %th.info #
17 18 %th.info At
18 19 %th.info Source
19 20 %th.info Result
20 21 %th.info{:width => "300px"}
21 22 Compiler message
22 23 = render :partial => 'submission', :collection => @submissions
23 24 - else
24 25 No submission
You need to be logged in to leave comments. Login now