
-menu_item_lang =menu_item.menu_item_langs.find_by_lang_site_id(@lang.id)

#menu_item_row.menu_item_row.row{:id => menu_item.id,:"data-menu-item-id" => menu_item.id}
  
  %table{:style => "width:100%"}
    %tr
      %td{:style => "width:180px"}
        .receptable{:style => "display:inline-block;width:110px;",:data => {:menu_id => (@menu.id if @menu), :parent_id => menu_item.id}}
          -if @menu
            .btn-group
              %span.handle.btn.btn-default=ic(:arrows, :icon => false)
              =link_to (menu_item.children.size > 0 ? ic(:"folder") : ic(:"folder-o") )+" "+(menu_item.children.size if menu_item.children.size > 0).to_s, admin_menu_items_path(:menu_id => menu_item.menu_id, :parent_id => menu_item.id), :remote => true, :class => "btn btn-default"
  
        =menu_item.menu_content_type.constantize::HUMAN_NAME
      %td{:style => "width:30%"}
        =menu_item_lang.name
      %td
  
        -if @menu
          =link_to "/"+@lang.slug.to_s+"/"+menu_item_lang.permalink.to_s+".html", "/"+@lang.slug.to_s+"/"+menu_item_lang.permalink.to_s+".html"
        -else
          =link_to archive_public_menu_item_path(menu_item), archive_public_menu_item_path(menu_item)
      %td.actions
        =link_to i(:copy)+"a", clone_as_article_admin_menu_item_path(menu_item), :data => {:confirm => 'Voulez-vous créer un article à partir de cet élément de menu ?'}
        =link_to i(:copy), clone_admin_menu_item_path(menu_item), :data => {:confirm => 'Voulez-vous vraiment cloner cet élément de menu ?'}

        = link_to i(:"trash-o"), [:admin, menu_item], :data =>{:confirm => 'Voulez-vous vraiment supprimer cet élément de menu ?'}, :method => :delete #, if current_admin.super_admin? || !menu_item.super_admin

        = link_to i(:pencil), edit_admin_menu_item_path(menu_item)

    
    


