| @@ -95,6 +95,7 @@ | |||||
| %th candidates | %th candidates | ||||
| %th.right votes | %th.right votes | ||||
| %th.right % votes | %th.right % votes | ||||
| %th.right votes per candidate | |||||
| - count = 0 | - count = 0 | ||||
| @@ -112,9 +113,11 @@ | |||||
| - if @election_held | - if @election_held | ||||
| %td.right= commify(row['total_votes']) | %td.right= commify(row['total_votes']) | ||||
| %td.right= format_percent(row['total_votes'].to_f / @total_votes * 100) | %td.right= format_percent(row['total_votes'].to_f / @total_votes * 100) | ||||
| %td.right= commify(row['total_votes'] / row['num_candidates']) | |||||
| - else | - else | ||||
| %td.right — | %td.right — | ||||
| %td.right — | %td.right — | ||||
| %td.right — | |||||
| %tr.footer | %tr.footer | ||||
| %td | %td | ||||
| @@ -127,6 +130,7 @@ | |||||
| %td.right= @total_candidates | %td.right= @total_candidates | ||||
| %td.right= commify(@total_votes) | %td.right= commify(@total_votes) | ||||
| %td | %td | ||||
| %td | |||||
| - if @poll | - if @poll | ||||
| %p | %p | ||||