Sprankelprachtig aan/afmeldsysteem

_menu.html.haml 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. %nav.navbar.navbar-default.navbar-fixed-top
  2. .container
  3. .navbar-header
  4. %button.navbar-toggle.collapsed{type: 'button', data: {toggle: 'collapse', target: '#navbar'}, 'aria-expanded': false, 'aria-controls': 'navbar'}
  5. .sr-only
  6. = t 'collapse'
  7. .icon-bar
  8. .icon-bar
  9. .icon-bar
  10. = link_to root_path, class: 'navbar-brand' do
  11. = image_tag "aardbei.svg", height: '20px', title: "Waarbij?"
  12. .navbar-collapse.collapse#navbar
  13. %ul.nav.navbar-nav
  14. %li
  15. = link_to root_path do
  16. %i.fas.fa-home{'aria-hidden': true}
  17. Home
  18. %li
  19. = link_to user_groups_path do
  20. %i.fas.fa-users{'aria-hidden': true}
  21. = t 'groups.plural'
  22. - if current_person.is_admin?
  23. %li
  24. = link_to people_path do
  25. %i.fas.fa-user{'aria-hidden': true}
  26. = t 'person.plural'
  27. %li
  28. = link_to groups_path do
  29. %i.fas.fa-users{'aria-hidden': true}
  30. = t 'groups.all'
  31. %ul.nav.navbar-nav.navbar-right
  32. %li
  33. = link_to settings_path do
  34. %i.fas.fa-cogs{'aria-hidden': true}
  35. = t 'settings.settings'
  36. %li
  37. = link_to logout_path, data: {confirm: t(:areyousure)}, method: :delete do
  38. %i.fas.fa-sign-out-alt{'aria-hidden': true}
  39. = t 'log_out'