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.

layout.haml 1.3 KiB

12 jaren geleden
14 jaren geleden
12345678910111213141516171819202122232425262728293031323334353637
  1. !!!5
  2. %html
  3. %head
  4. %title= @page_title ? @page_title + " - Sutton Elections" : "Sutton Elections - Your guide to voting and election results in the London Borough of Sutton"
  5. %link{ :rel => 'stylesheet', :type => 'text/css', :href => 'http://yui.yahooapis.com/pure/0.6.0/pure-min.css' }
  6. %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/style.css' }
  7. %link{ :rel => 'stylesheet', :type => 'text/css', :href => '/print.css', :media => 'print' }
  8. %meta{ :name => 'referrer', :content => 'no-referrer' }
  9. %meta{ :name => 'viewport', :content => 'width=device-width, initial-scale=1' }
  10. %body
  11. #header.noprint
  12. #header_inner
  13. %h1 Sutton Elections
  14. .pure-menu.pure-menu-horizontal
  15. %ul.pure-menu-list
  16. %li.pure-menu-item
  17. %a{ :href => '/' } Home
  18. - Body.each do |body|
  19. %li.pure-menu-item
  20. %a{ :href => "/bodies/#{body.slug}" }
  21. = body.name
  22. %li.pure-menu-item
  23. %a{ :href => '/candidates' } Candidates
  24. %li.pure-menu-item
  25. %a{ :href => '/guides' } Guides
  26. %li.pure-menu-item
  27. %a{ :href => '/about' } About
  28. #main
  29. - if flash[:notice]
  30. #notice
  31. %p= flash[:notice]
  32. - if flash[:error]
  33. #error
  34. %p= flash[:error]
  35. = yield