From 5781ea535901d41980bbd0120a24af09570f567c Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 8 Jan 2012 12:09:48 -0800 Subject: [PATCH] --- gistfile1.haml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gistfile1.haml 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