#portlet.portlet{:"data-show-link" => eval("portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id, :format => :js)"), :"data-edit-link" => eval("edit_portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id, :format => :js)"), :id => portlet.id,:"data-portlet_id" => portlet.id, :class => "portlet_"+portlet.content_type.tableize.singularize+(" " if portlet.content_type == "BlockContent").to_s}  
  .portlet_label
    =Block::ContentTypes[portlet.content_type.to_sym]
  
  -if portlet.content_type == "BlockContent"
    .btn-toolbar{:style => "position:absolute;margin-left:150px;margin-top:5px;"}
      .btn-group
        %a.btn.handle{:href => "#"}=ic :arrows
        =link_to ic(:pencil), eval("edit_portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id)"), :remote => true, :class => "btn"
        =link_to ic(:"trash-o"), eval("portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id)"), :method => :delete, :data => { :confirm => "Etes-vous sûr ?"}, :remote => true, :class => "btn"
  
  
    
  
  
  -else
    .btn-toolbar{:style => "position:absolute;margin-left:10px;z-index:1;"}
      .btn-group
        %a.btn.btn-default.portlet_handle{:href => "#", :data => {:portlet_id => portlet.id}}=ic :arrows
        =link_to ic(:pencil), eval("edit_portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id)"), :remote => true, :class => "btn btn-default"
        =link_to ic(:"trash-o"), eval("portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id)"), :method => :delete, :data => { :confirm => "Etes-vous sûr ?"}, :remote => true, :class => "btn btn-default"
  
  
  
  

  
  -@admin = true
  =render :partial => "portlets/render_public/"+portlet.content_type.to_s.downcase, :locals => {:input => portlet.content, :admin => true, :edit_link => eval("edit_portlet_"+portlet.content_type.tableize.singularize+"_path(portlet.content, :portlet_id => portlet.id)") }