.content
  .main_head
    .main_head_top.clearfix
      .main_menu
        %nav.navbar.navbar-default
          .container-fluid
            .navbar-header
              %button.navbar-toggle.collapsed{"aria-expanded" => "false", "data-target" => "#bs-example-navbar-collapse-1", "data-toggle" => "collapse", :type => "button"}
                %span.sr-only Toggle navigation
                %span.icon-bar
                %span.icon-bar
                %span.icon-bar
            #bs-example-navbar-collapse-1.collapse.navbar-collapse
              %ul.nav.navbar-nav
                %li
                  %a{:href => "#"}= t ("header.platfform")
                %li
                  %a{:href => "#"}= t ("header.grants")
                %li
                  %a{:href => "#projects"}= t ("header.projects")
                %li
                  %a{:href => "#"}= t ("header.partners")
                %li
                  %a{:href => "#"}= t ("header.digital")
                %li
                  %a{:href => "#"}= t ("header.about_us")
                %li
                  %a{:href => "#"}= t ("header.news")
                %li
                  %a{:href => "#"}= t ("header.reports")
                %li
                  %a{:href => "#"} connectif
      %ul.nav.nav-tabs.nav_btns
        %li.active
          %a{"data-toggle" => "tab", :href => "#1"}= t 'header.people'
        %li
          %a{"data-toggle" => "tab", :href => "#2"}= t 'header.businesses'
          .show_tip
            Ознайомтесь з дружніми бізнесами
            які допомагають формувати
            та покрищувати наше місто
      - unless current_user
        .login_wrap
          %div
            %button.login_btn{"data-target" => "#modal3", "data-toggle" => "modal"}
              = image_tag ("login.png")
      - else 
        #sign_in
          .dropdown.user_dropdown
            %button#dropdownMenu1.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :type => "button"}
              - if current_user.avatar?
                = image_tag(current_user.avatar_url)
              - else 
                = image_tag "https://cdn1.iconfinder.com/data/icons/rcons-user-action/512/user-512.png"
              %ul.dropdown-menu{"aria-labelledby" => "dropdownMenu1"}
                - if current_user.admin?
                  %li
                    %a{:href => "/admin"}= t 'header.admin'
                %li
                  %a{:href => "#"}= t 'header.profile'
                %li
                  = link_to("#{t 'header.log_out'}", destroy_user_session_path, method: :delete) 
      .search_block
        %input#search_field.search_field{placeholder: "#{t 'header.find_by_name'}", :type => "text"}/
        %button.search_btn
          %i.icon.icon_search