#content_types_draggables -block.content_types.each do |content_type| .content_types_draggable{:id => content_type.id, :data_type => content_type.slug} =image_tag("admin/content_type/type_"+content_type.slug.to_s+".png", :alt => content_type.name) .grid_12 #block_portlets.block_portlets{:id => block.id, :"data-block_id"=>block.id} =render :partial => "portlet/portlets/portlet", :collection => block.portlets.find(:all, :order => :position, :include => :content) %div{:style => "height:70px;"} :javascript block_js_initialize();