Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
adrianshort
/
gist-1579512
espelho de
https://gist.github.com/1579512.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Lançamentos
0
Wiki
Trabalho
Ver a proveniência
master
Adrian Short
há 12 anos
cometimento
5781ea5359
1 ficheiros alterados
com
16 adições
e
0 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+16
-0
gistfile1.haml
+ 16
- 0
gistfile1.haml
Ver ficheiro
@@ -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)
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar