= link_to "Home", root_path, :class => 'brand'
%ul.nav
  - if user_signed_in?
    %li
      = link_to('Logout', destroy_user_session_path)
    %li
      = link_to('Dashboard', dashboard_path)
  - else
    %li
      = link_to('Login', new_user_session_path)
  - if user_signed_in?
    %li
      = link_to('Edit account', edit_user_registration_path)
  - else
    %li
      = link_to('Sign up', new_user_registration_path)
  %li
    = link_to('Challenges', challenges_path)
= link_to "Home", root_path, :class => 'brand'
%ul.nav
  - if user_signed_in?
    %li
      = link_to('Dashboard', dashboard_path)
    %li
      = link_to('Challenges', challenges_path)
    %li
      = link_to('Edit account', edit_user_registration_path)
    %li.pull-right
      = link_to('Logout', destroy_user_session_path)

  - else
    %li
      = link_to('Login', new_user_session_path)

Hide irrelevant links from navbar
Hide irrelevant links from navbar
