Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
adrianshort
/
gist-1579512
mirror da
https://gist.github.com/1579512.git
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
master
Adrian Short
12 anni fa
commit
5781ea5359
1 ha cambiato i file
con
16 aggiunte
e
0 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+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)
Scrivi
Anteprima
Caricamento…
Annulla
Salva