|
12345678910111213141516171819202122232425262728 |
- %h1= @page_title = "Candidates"
-
- %nav.letter_index
- - ("A".."Z").each do |letter|
- %a{ :href => "##{letter}" }<
- = letter
-
- - @first_letter = ''
-
- %table
- - @candidates.each do |c|
- - if c.surname[0] != @first_letter
- - @first_letter = c.surname[0]
- %tr.noborder
- %td
- %td
- %tr.noborder{ :name => @first_letter, :id => @first_letter }
- %td.strong{ :style => "font-size: 300%;" }= @first_letter.upcase
- %td
- %tr
- %td
- %td
- %tr
- %td
- %a{ :href => "/candidates/#{c.id}" }
- = c.surname
- %td= c.forenames
-
|