


#tag_index

  #tag_breadcrumb
    = link_to 'Ajouter un tag', new_admin_tag_path( :parent_id => params[:parent_id]), :class => "btn btn-primary",:remote => true, :style => "float:right;"
  
  

    -if @tag_parent
      =link_to "Racine", admin_tags_path
      -@tag_parent.ancestors.reverse.each do |tag|
      
      
        =link_to tag.name, admin_tags_path( :parent_id =>tag.id), :remote => true, :class => "child"

      
    

    
      %span=@tag_parent.name
     

  
  

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

      =link_to ic(:"folder"), admin_tags_path( :parent_id => (@tag_parent.parent ? @tag_parent.parent.id : nil)), :remote => true


      =link_to ic(:inbox), "#", :class => "receptable_link", :data => {:tag_id => (@tag_parent.parent ? @tag_parent.parent.id : nil)}

     

  #sortable_tag{:data => { :parent_id => (@tag_parent ? @tag_parent.id : "")} }
  
    
    .clear 
    
          

      
      
    -if @tags.size > 0
      %table{:style => "width:100%;"}=render @tags
    -else
      .no_tags
        Il n'y a aucun éléments de menu actuellement.
        
  :javascript

    init_tags_list();
    
:scss
  

  
  #tag_index{
    
    .prevv_folder.hovered { 

      background:rgba(143,202,70,0.8);
    
     }
    
    .receptable.hovered { 
    .btn{
      background:rgba(143,202,70,0.8);
    }
     }
    
    .ui-sortable-helper{
      opacity:0.5;
    }
    
    .ui-sortable-placeholder{
      height:10px;
      background:rgba(143,202,70,0.8);
      visibility:visible !important;
    }
  }