.navbar.navbar-default.navbar-fixed-top
  .container
    .navbar-header
      %button.navbar-toggle(type="button" data-target=".navbar-collapse" data-toggle="collapse")
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      %a.navbar-brand(href=root_path)
        = image_tag("/assets/3000acres_logo.png", :size => "70x70", :alt => Acres::Application.config.site_name)
    .navbar-collapse.collapse
      %ul.nav.navbar-nav.navbar-right

        - if @cms_topnav
          - @cms_topnav.pages.root.children.published.each do |page|
            %li= link_to page.label, page.full_path

        - if user_signed_in?
          - if current_user.has_role? :admin
            %li= link_to 'Sites Admin', sites_path
            %li{ :data => { :no_turbolink => true }}= link_to 'CMS Admin', cms_admin_path
          %li= link_to 'Edit account', edit_user_registration_path
          %li= link_to 'Sign out', destroy_user_session_path, :method=>'delete'
        - else
          %li= link_to 'Sign in', new_user_session_path
          %li= link_to 'Sign up', new_user_registration_path

      - if user_signed_in?
        %p.navbar-text.navbar-right
          You are signed in as
          = current_user.name

.navbar.navbar-default.navbar-fixed-top
  .container
    .navbar-header
      %button.navbar-toggle(type="button" data-target=".navbar-collapse" data-toggle="collapse")
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      %a.navbar-brand(href=root_path)
        = image_tag("/assets/3000acres_logo.png", :size => "70x70", :alt => Acres::Application.config.site_name)
    .navbar-collapse.collapse
      %ul.nav.navbar-nav.navbar-right

        - if @cms_topnav
          - @cms_topnav.pages.root.children.published.each do |page|
            %li= link_to page.label, page.full_path

        - if user_signed_in?
          %li= link_to 'Your sites', user_path(current_user)
          - if current_user.has_role? :admin
            %li= link_to 'Sites Admin', sites_path
            %li{ :data => { :no_turbolink => true }}= link_to 'CMS Admin', cms_admin_path
          %li= link_to 'Edit account', edit_user_registration_path
          %li= link_to 'Sign out', destroy_user_session_path, :method=>'delete'
        - else
          %li= link_to 'Sign in', new_user_session_path
          %li= link_to 'Sign up', new_user_registration_path

      - if user_signed_in?
        %p.navbar-text.navbar-right
          You are signed in as
          = current_user.name

Add link to user page in navbar
Add link to user page in navbar
