#menu_item_index

  %ul.breadcrumb
    = link_to 'Ajouter un élément au menu', new_admin_menu_item_path(:menu_id => @menu.id, :parent_id => params[:parent_id]), :class => "btn btn-primary",:remote => true, :style => "float:right;"
    %li
      =link_to @menu.name, admin_menu_items_path(:menu_id => @menu.id),:remote => true

    -if @menu_parent
      -@menu_parent.ancestors.reverse.each do |menu_item|
        %li
          -menu_item_lang = menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)
          
        
          =link_to menu_item_lang.name, admin_menu_items_path(:menu_id => @menu.id, :parent_id =>menu_item.id), :remote => true
  
      
      %li

        -menu_item_lang = @menu_parent.menu_item_langs.find_by_lang_site_id(@lang.id)
        =menu_item_lang.name
     
    %p{:style => "clear:both;"}
  
  

  -if @menu_parent
    .prevv_folder.receptable{:style => "padding:10px;", :data => {:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : "no-menu-selected")} }

      =link_to ic(:"folder"), admin_menu_items_path(:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : nil)), :remote => true


      =link_to "...", admin_menu_items_path(:menu_id => @menu.id, :parent_id => (@menu_parent.parent ? @menu_parent.parent.id : nil)), :remote => true
  
     

  #sortable_menu_item{:data => {:menu_id => @menu.id, :parent_id => (@menu_parent ? @menu_parent.id : "")} }
  
    
          
    
          

      
      
    -if @menu_items.size > 0
      =render @menu_items
    -else
      .no_menu_items
        Il n'y a aucun éléments de menu actuellement.
        
  :javascript

    init_menu_items_list();