

%tr#tag_row.tag_row{:id => tag.id,:data =>{:tag_id => tag.id}}
  %td{:style => "width:80px"}
    =check_box_tag :tag_ids, tag.id
    &nbsp;&nbsp;
    =link_to ic(:inbox), "#", :class => "receptable_link", :data => {:tag_id => tag.id}
    
  %td
    
    =link_to (tag.child_count > 0 ? ic(:"folder") : ic(:"folder-o") )+" "+(tag.child_count if tag.child_count > 0).to_s, admin_tags_path( :parent_id => tag.id), :remote => true, :class => "btn btn-default"

    
  %td{:style => "width:30%"}
    =tag.name


    
  %td.actions
    =link_to "fusionner", group_admin_tag_path(tag), :remote => true
 
    = link_to i(:"image"), admin_image_files_path(:tag_id => tag.id, :view_all_images => true)

    = link_to i(:"trash-o"), [:admin, tag], :data =>{:confirm => 'Voulez-vous vraiment supprimer ce tag ?'}, :method => :delete, :remote => true #, if current_admin.super_admin? || !tag.super_admin

    = link_to i(:pencil), edit_admin_tag_path(tag), :remote => true






