Adrian Short 12 anni fa
commit
5781ea5359
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. +16
    -0
      gistfile1.haml

+ 16
- 0
gistfile1.haml Vedi 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)

Caricamento…
Annulla
Salva