Description:
fix full score
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r444:bbb2dd914404 - - 1 file changed: 1 inserted, 1 deleted
@@ -1,46 +1,46 | |||
|
1 | 1 | - content_for :header do |
|
2 | 2 | = javascript_include_tag 'new' |
|
3 | 3 | |
|
4 | 4 | %script{:type=>"text/javascript"} |
|
5 | 5 | $(function () { |
|
6 | 6 | $('#submission_table').tablesorter({widgets: ['zebra','filter']}); |
|
7 | 7 | }); |
|
8 | 8 | |
|
9 | 9 | :css |
|
10 | 10 | .fix-width { |
|
11 | 11 | font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier; |
|
12 | 12 | } |
|
13 | 13 | |
|
14 | 14 | %h1= @user.full_name + ' Profile' |
|
15 | 15 | |
|
16 | 16 | %h2 Basic info |
|
17 | 17 | <b>Login:</b> #{@user.login} <br/> |
|
18 | 18 | <b>Full name:</b> #{@user.full_name} <br /> |
|
19 | 19 | |
|
20 | 20 | |
|
21 | 21 | %h2 Problem Stat |
|
22 | 22 | |
|
23 | 23 | %h2 Submissions |
|
24 | 24 | |
|
25 | 25 | %table.tablesorter-cafe#submission_table |
|
26 | 26 | %thead |
|
27 | 27 | %tr |
|
28 | 28 | %th ID |
|
29 | 29 | %th Problem code |
|
30 | 30 | %th Problem name |
|
31 | 31 | %th Language |
|
32 | 32 | %th Result |
|
33 | 33 | %th Score |
|
34 | 34 | %tbody |
|
35 | 35 | - @submission.each do |s| |
|
36 | 36 | - next unless s.problem |
|
37 | 37 | %tr |
|
38 | 38 | %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id |
|
39 | 39 | %td= s.problem.name |
|
40 | 40 | %td= s.problem.full_name |
|
41 | 41 | %td= s.language.pretty_name |
|
42 | 42 | %td.fix-width= s.grader_comment |
|
43 |
- %td= s.points/s.problem.full_score |
|
|
43 | + %td= (s.points*100)/s.problem.full_score | |
|
44 | 44 | |
|
45 | 45 | |
|
46 | 46 |
You need to be logged in to leave comments.
Login now