This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
gist-1579512
mirror of
https://gist.github.com/1579512.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
master
Adrian Short
13 years ago
commit
5781ea5359
1 changed files
with
16 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)
Write
Preview
|
|
|
|
|
|
x
0
0
0:0
Loading…
Cancel
Save