-if @admin
  plan du site
-else
  %h1 Plan du site
  .plan_body
    
    %ul
      -MenuItem.where(:parent_id => nil, :menu_id => 1).order(:position).each do |menu_item|
        -description = ""
        -description = menu_item.menu_content.description if menu_item.menu_content and menu_item.menu_content_type == "Page"
        -if menu_item_link(menu_item) and menu_item_link(menu_item) != ""
        
          %li=menu_item_link(menu_item)
        
          %ul
            -menu_item.children.each do |menu_item|
              -if menu_item_link(menu_item) and menu_item_link(menu_item) != ""
        
                %li=menu_item_link(menu_item)
    
      %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
      
      
      %li=link_to "Mon compte", public_my_account_path
    
    
      %li
        %a{:accesskey => "3", :href => "/fr/plan-site.html", :title => "Plan du site"} Plan du site
      %li
        %a{:accesskey => "8", :href => "/fr/mentions-legales.html", :title => "Mentions légales"} Mentions légales
      %li
        %a{:accesskey => "8", :href => "/fr/conditions-generales-utilisation.html", :title => "Conditions générales d'utilisation"} Conditions générales d'utilisation
    
  %br
  %br
  %br