Election results in the London Borough of Sutton.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

38 строки
956 B

  1. -#
  2. #lookup
  3. %h2= @election_title
  4. %form{ :method => 'get', :action => '/' }
  5. %label{ :for => "postcode" } My postcode is
  6. %input{ :type => 'text', :name => 'postcode', :value => @default_pc, :size => 8, :maxlength => 8 }
  7. %input{ :type => 'submit', :value => "Find my results" }
  8. - if future_elections.size > 0
  9. %h2 Upcoming elections
  10. %table
  11. - future_elections.each do |election|
  12. %tr
  13. %td
  14. %a{ :href => "/bodies/#{election.body.slug}/elections/#{election.d}" }
  15. = short_date(election.d)
  16. %td
  17. = election.body.name
  18. %td
  19. = election.kind
  20. - if past_elections.size > 0
  21. %h2 Past elections
  22. %table
  23. - past_elections.each do |election|
  24. %tr
  25. %td
  26. %a{ :href => "/bodies/#{election.body.slug}/elections/#{election.d}" }
  27. = short_date(election.d)
  28. %td
  29. = election.body.name
  30. %td
  31. = election.kind