Election results in the London Borough of Sutton.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

candidates.haml 481 B

13 年之前
1234567891011121314151617181920212223
  1. %h1= @page_title = "Candidates"
  2. - @first_letter = ''
  3. %table
  4. - @candidates.each do |c|
  5. - if c.surname[0] != @first_letter
  6. - @first_letter = c.surname[0]
  7. %tr.noborder
  8. %td  
  9. %td
  10. %tr.noborder
  11. %td.strong{ :style => "font-size: 300%;" }= @first_letter.upcase
  12. %td
  13. %tr
  14. %td
  15. %td
  16. %tr
  17. %td
  18. %a{ :href => "/candidates/#{c.id}" }
  19. = c.surname
  20. %td= c.forenames