Show More
Commit Description:
remove lingering debug info
Commit Description:
remove lingering debug info
References:
File last commit:
Show/Diff file:
Action:
app/views/report/_score_table.html.haml | 69 lines | 1.8 KiB | text/x-haml | HamlLexer |
- DRY score table...
r601 %table.table.sortable.table-striped.table-bordered.table-condensed
%thead
%tr
%th Login
%th Name
- streamline current score report and fix some bug
r610 / %th Activated?
/ %th Logged_in
/ %th Contest(s)
- DRY score table...
r601 %th Remark
- @problems.each do |p|
- streamline current score report and fix some bug
r610 %th.text-right= p.name.gsub('_',' ')
- DRY score table...
r601 %th.text-right Total
%th.text-right Passed
%tbody
fix whitelisting bugs...
r784 - sum = Array.new(@problems.count+1,0)
- nonzero = Array.new(@problems.count+1,0)
- full = Array.new(@problems.count+1,0)
- DRY score table...
r601 - @scorearray.each do |sc|
%tr
- total,num_passed = 0,0
- sc.each_index do |i|
- if i == 0
change find(:xxx) to correct syntax for rails 4
r619 %td= link_to sc[i].login, stat_user_path(sc[i])
- DRY score table...
r601 %td= sc[i].full_name
- streamline current score report and fix some bug
r610 / %td= sc[i].activated
/ %td= sc[i].try(:contest_stat).try(:started_at) ? 'yes' : 'no'
/ %td= sc[i].contests.collect {|c| c.name}.join(', ')
- DRY score table...
r601 %td= sc[i].remark
- else
%td.text-right= sc[i][0]
- total += sc[i][0]
- num_passed += 1 if sc[i][1]
add footer for total score
r698 - sum[i] += sc[i][0]
- nonzero[i] += 1 if sc[i][0] > 0
- full[i] += 1 if sc[i][1]
- DRY score table...
r601 %td.text-right= total
%td.text-right= num_passed
add footer for total score
r698 %tfoot
%tr
%td Summation
%td
%td
- sum.each.with_index do |s,i|
- next if i == 0
%td.text-right= number_with_delimiter(s)
%td
%td
%tr
%td partial solver
%td
%td
- nonzero.each.with_index do |s,i|
- next if i == 0
%td.text-right= number_with_delimiter(s)
%td
%td
%tr
%td Full solver
%td
%td
- full.each.with_index do |s,i|
- next if i == 0
%td.text-right= number_with_delimiter(s)
%td
%td
- DRY score table...
r601
:javascript
$.bootstrapSortable(true,'reversed')