Description:
fix full score
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r444:bbb2dd914404 - - 1 file changed: 1 inserted, 1 deleted

@@ -1,46 +1,46
1 - content_for :header do
1 - content_for :header do
2 = javascript_include_tag 'new'
2 = javascript_include_tag 'new'
3
3
4 %script{:type=>"text/javascript"}
4 %script{:type=>"text/javascript"}
5 $(function () {
5 $(function () {
6 $('#submission_table').tablesorter({widgets: ['zebra','filter']});
6 $('#submission_table').tablesorter({widgets: ['zebra','filter']});
7 });
7 });
8
8
9 :css
9 :css
10 .fix-width {
10 .fix-width {
11 font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier;
11 font-family: Droid Sans Mono,Consolas, monospace, mono, Courier New, Courier;
12 }
12 }
13
13
14 %h1= @user.full_name + ' Profile'
14 %h1= @user.full_name + ' Profile'
15
15
16 %h2 Basic info
16 %h2 Basic info
17 <b>Login:</b> #{@user.login} <br/>
17 <b>Login:</b> #{@user.login} <br/>
18 <b>Full name:</b> #{@user.full_name} <br />
18 <b>Full name:</b> #{@user.full_name} <br />
19
19
20
20
21 %h2 Problem Stat
21 %h2 Problem Stat
22
22
23 %h2 Submissions
23 %h2 Submissions
24
24
25 %table.tablesorter-cafe#submission_table
25 %table.tablesorter-cafe#submission_table
26 %thead
26 %thead
27 %tr
27 %tr
28 %th ID
28 %th ID
29 %th Problem code
29 %th Problem code
30 %th Problem name
30 %th Problem name
31 %th Language
31 %th Language
32 %th Result
32 %th Result
33 %th Score
33 %th Score
34 %tbody
34 %tbody
35 - @submission.each do |s|
35 - @submission.each do |s|
36 - next unless s.problem
36 - next unless s.problem
37 %tr
37 %tr
38 %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id
38 %td= link_to "#{s.id}", controller: "graders", action: "submission", id: s.id
39 %td= s.problem.name
39 %td= s.problem.name
40 %td= s.problem.full_name
40 %td= s.problem.full_name
41 %td= s.language.pretty_name
41 %td= s.language.pretty_name
42 %td.fix-width= s.grader_comment
42 %td.fix-width= s.grader_comment
43 - %td= s.points/s.problem.full_score * 100
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