#masthead.header
  %div
    %h1#logo= link_to LONG_SITE_NAME, root_path
    #nav-primary
      -cache('primary_nav') do
        %ul.nav.site.alt.title-ideas
          %li= link_to "About", home_about_path
        %ul.nav.site
          %li= link_to "Ideas", ideas_path
          %li= link_to "Tags",  tags_path
          %li= link_to "Currents", currents_path
    %ul.nav.user
      - if user_signed_in?
        %li.first= link_to "#{h current_user.name}" , user_profile_path(current_user)
        %li= link_to 'Settings', edit_user_registration_path
        %li= link_to 'Log Out', destroy_user_session_path, method: :delete
      - else
        - cache('no_user_nav') do
          %li= link_to "Sign Up", new_user_registration_path
          %li= link_to 'Log in', new_user_session_path
      %li.last.search
        = form_tag search_ideas_path, :method => :get, :id => 'idea_search_box' do
          %label{ :for => "search_text" }
            Search:
          = text_field_tag 'search_text', params[:search_text]

#masthead.header
  %div
    %h1#logo= link_to LONG_SITE_NAME, root_path
    #nav-primary
      -cache('primary_nav') do
        %ul.nav.site.alt.title-ideas
          %li= link_to "About", home_about_path
        %ul.nav.site
          %li= link_to "Ideas", ideas_path
          %li= link_to "Tags",  tags_path
          %li= link_to "Currents", currents_path
    %ul.nav.user
      - if user_signed_in?
        - if current_user.admin?
          %li.first= link_to 'Admin', admin_dashboard_path
          %li= link_to "#{h current_user.name}" , user_profile_path(current_user)
        - else
          %li.first= link_to "#{h current_user.name}" , user_profile_path(current_user)
        %li= link_to 'Settings', edit_user_registration_path
        %li= link_to 'Log Out', destroy_user_session_path, method: :delete
      - else
        - cache('no_user_nav') do
          %li= link_to "Sign Up", new_user_registration_path
          %li= link_to 'Log in', new_user_session_path
      %li.last.search
        = form_tag search_ideas_path, :method => :get, :id => 'idea_search_box' do
          %label{ :for => "search_text" }
            Search:
          = text_field_tag 'search_text', params[:search_text]

Add header layout dashboard link for admins
Add header layout dashboard link for admins
