Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
adrianshort
/
gist-1579512
réplica de
https://gist.github.com/1579512.git
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
master
Adrian Short
hace 12 años
commit
5781ea5359
Se han
modificado 1 ficheros
con
16 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+16
-0
gistfile1.haml
+ 16
- 0
gistfile1.haml
Ver fichero
@@ -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)
Escribir
Vista previa
Cargando…
Cancelar
Guardar