Adrian Short 12 years ago
commit
5781ea5359
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      gistfile1.haml

+ 16
- 0
gistfile1.haml View File

@@ -0,0 +1,16 @@
- @last_date = ''

- @results.each do |row|

- if row.election_d != @last_date
- @last_date = row.election_d
%h2= row.election_d
%table

%tr
%td{ :style => "background-color: #{row.party_colour}" }
 
%td= row.party_name
%td= row.c_surname
%td= to_ordinal(row.position)
%td= commify(row.votes)

Loading…
Cancel
Save