Explorar el Código

Remove candidates' list

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

+ 9
- 8
views/district.haml Ver fichero

@@ -8,15 +8,16 @@


%h1= "#{@district.name} #{@district.body.district_name}" %h1= "#{@district.name} #{@district.body.district_name}"


- @election = Election.get(9) # FIXME magic number
-#
- @election = Election.get(9) # FIXME magic number


%h2
= @district.name
ward candidates for the
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}"}
= @election.body.name
election on
= long_date(@election.d)
%h2
= @district.name
ward candidates for the
%a{ :href => "/bodies/#{@election.body.slug}/elections/#{@election.d}"}
= @election.body.name
election on
= long_date(@election.d)


%table %table
- Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c| - Candidacy.all(:election => @election, :district => @district, :order => [:party_id]).each do |c|


Cargando…
Cancelar
Guardar