Description:
add section information
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r510:89d1f8d661ec - - 1 file changed: 2 inserted, 0 deleted
@@ -10,45 +10,47 | |||
|
10 | 10 | }); |
|
11 | 11 | |
|
12 | 12 | %h1 User grading results |
|
13 | 13 | %h2= params[:action] == 'user_stat' ? "Show scores from latest submission" : "Show max scores in submission range" |
|
14 | 14 | |
|
15 | 15 | |
|
16 | 16 | - if @problem and @problem.errors |
|
17 | 17 | =error_messages_for 'problem' |
|
18 | 18 | |
|
19 | 19 | = render partial: 'submission_range' |
|
20 | 20 | |
|
21 | 21 | - if params[:action] == 'user_stat' |
|
22 | 22 | = "latest score" |
|
23 | 23 | - else |
|
24 | 24 | = link_to '[Show only latest submissions]', controller: :user_admin, action: :user_stat |
|
25 | 25 | |
|
26 | 26 | %table.tablesorter-cafe#my_table |
|
27 | 27 | %thead |
|
28 | 28 | %tr |
|
29 | 29 | %th User |
|
30 | 30 | %th Name |
|
31 | 31 | %th Activated? |
|
32 | 32 | %th Logged in |
|
33 | 33 | %th Contest(s) |
|
34 | + %th Section | |
|
34 | 35 | - @problems.each do |p| |
|
35 | 36 | %th= p.name |
|
36 | 37 | %th Total |
|
37 | 38 | %th Passed |
|
38 | 39 | %tbody |
|
39 | 40 | - @scorearray.each do |sc| |
|
40 | 41 | %tr{class: cycle('info-even','info-odd')} |
|
41 | 42 | - total,num_passed = 0,0 |
|
42 | 43 | - sc.each_index do |i| |
|
43 | 44 | - if i == 0 |
|
44 | 45 | %td= link_to sc[i].login, controller: 'users', action: 'profile', id: sc[i] |
|
45 | 46 | %td= sc[i].full_name |
|
46 | 47 | %td= sc[i].activated |
|
47 | 48 | %td= sc[i].try(:contest_stat).try(:started_at)!=nil ? 'yes' : 'no' |
|
48 | 49 | %td= sc[i].contests.collect {|c| c.name}.join(', ') |
|
50 | + %td= sc[i].section | |
|
49 | 51 | - else |
|
50 | 52 | %td= sc[i][0] |
|
51 | 53 | - total += sc[i][0] |
|
52 | 54 | - num_passed += 1 if sc[i][1] |
|
53 | 55 | %td= total |
|
54 | 56 | %td= num_passed |
You need to be logged in to leave comments.
Login now