#mobile_menu
  .mobile_second_menu

    %ul.social-links


      %li
        -if current_p_customer
          =link_to public_my_account_path do
            =ic(:user)
            Mon compte :
            =current_p_customer.particular.firstname
            =current_p_customer.particular.name

        -else
          =link_to ic(:user)+" Mon compte", public_my_account_path


      %li
        %a{:href => "https://www.facebook.com/mamotosurcircuit/", :target => "_blank"}
          =ic :"facebook-f"



    .mobile_first_menu
      %ul


        -MenuItem.where(:parent_id => nil, :menu_id => 1).order(:position).each do |menu_item|
          -if menu_item_link(menu_item) and menu_item_link(menu_item) != ""
            %li
              =menu_item_link(menu_item)


        -if false
          %li
            =link_to "Trouvez votre journée", public_m_events_path


        %li
          =link_to "Circuits", public_circuits_path, :class => ("active" if @circuits_active)
        %li
          =link_to "Organisateurs", public_organisateurs_path, :class => ("active" if @organisateurs_active)

        %li
          %a{:href => "https://www.dunlop.eu/fr_fr/motorcycle/dealers/find-a-dealer.html", :target => "_blank", :title => "Distributeurs"}
            %span Distributeurs


    .mobile_second_menu
      %br
      %br
      %ul
        -if current_p_customer
          %li=link_to ic(:"power-off")+" Déconnexion", logout_public_p_customer_auths_path()


%button.navbar-toggle.collapsed.btn-menu#burger_menu{:onclick => "$('#mobile_menu').toggle();"}
  %span.sr-only Toggle navigation
  %span.icon-bar
  %span.icon-bar
  %span.icon-bar
