-if @admin
  plan du site
-else
  =raw "</div>" 
  .plan_sub
    .inner
      =link_to qit("Médiathèque"), search_path(:media => true)
      =link_to qit("Presse"), search_path(:press => true)
      =link_to qit("Documentation"), search_path(:doc => true)
      =link_to qit("Boutique"), "/fr/boutique.html"


  
  =raw "<div class='main row-fluid'>" 
  
  .plan_body
    
      
    -MenuItem.where(:parent_id => nil, :menu_id => 2).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) != ""
        
        %h3
          =menu_item_link(menu_item)
          
        -MenuItem.where(:id => menu_item.id).each do |menu_item|
          .plan_sub_menu{:class => "plan_sub_"+menu_item.id.to_s }
        

            .inner
              
          
              %ul
                -MenuItem.where(:parent_id => menu_item.id).order(:position).each do |menu_item|
  
                  -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)

    
                  -name = menu_item_lang.name
                  -if menu_item_lang.enabled == true and menu_item_lang.visible == true #and menu_item.menu_content.page_type_id == 4
        
                    %li
                      =link_to @one_voice_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug) , :class => "chapitre_link "+("active" if @menu_item and menu_item.id == @menu_item.id).to_s do
                        =menu_item.menu_item_langs.find_by_lang_site_id(@lang.id).name
                        =">"
                  
                  
                      %ul
                        -MenuItem.where(:parent_id => menu_item.id).order(:position).each do |menu_item|
  
                          -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)

    
                          -name = menu_item_lang.name
                          -if menu_item_lang.enabled == true and menu_item_lang.visible == true and menu_item.menu_content.page_type_id == 2
        
                            %li
                              =link_to @one_voice_host.to_s+menu_item_path(:url => menu_item_lang.url, :lang => @lang.slug) , :class => "chapitre_link "+("active" if @menu_item and menu_item.id == @menu_item.id).to_s do
                                =menu_item.menu_item_langs.find_by_lang_site_id(@lang.id).name
                                =">"
        
          
        

    %h3=link_to "blog", articles_path(:lang => @lang.slug)
