Explorar el Código

Sort candidates by party

tags/last-sinatra-version
Adrian Short hace 12 años
padre
commit
6f18d48f85
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      views/district.haml

+ 1
- 1
views/district.haml Ver fichero

@@ -21,7 +21,7 @@
= long_date(@election.d)

%table
- Candidacy.all(:election => @election, :district => @district).each do |c|
- Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c|
- campaign = Campaign.first(:party => c.party, :election => @election)
%tr.vcard
%td{ :style => "background-color: #{c.party.colour}" }  


Cargando…
Cancelar
Guardar