commit 5781ea535901d41980bbd0120a24af09570f567c Author: Adrian Short Date: Sun Jan 8 12:09:48 2012 -0800 diff --git a/gistfile1.haml b/gistfile1.haml new file mode 100644 index 0000000..27c41f5 --- /dev/null +++ b/gistfile1.haml @@ -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) \ No newline at end of file