diff --git a/public/style.css b/public/style.css index 8826553..cbd5811 100644 --- a/public/style.css +++ b/public/style.css @@ -251,4 +251,8 @@ tr { background-color: blue; color: white; -} \ No newline at end of file +} + +.letter_index a { + margin: 0 10px 0 0; +} diff --git a/views/candidates.haml b/views/candidates.haml index 43a89ba..419e198 100644 --- a/views/candidates.haml +++ b/views/candidates.haml @@ -1,5 +1,10 @@ %h1= @page_title = "Candidates" +%nav.letter_index + - ("A".."Z").each do |letter| + %a{ :href => "##{letter}" }< + = letter + - @first_letter = '' %table @@ -9,7 +14,7 @@ %tr.noborder %td   %td - %tr.noborder + %tr.noborder{ :name => @first_letter, :id => @first_letter } %td.strong{ :style => "font-size: 300%;" }= @first_letter.upcase %td %tr