%h2=gallery_content.name
.description
  =raw gallery_content.description
  
%p{:style => "text-align:center;"}=link_to "Ajouter des images", "#", :onclick => "select_gallery_images_from_manager('"+gallery_content.id.to_s+"');return false;", :class => "btn"

.gallery_images  
  =render :collection => gallery_content.gallery_images, :partial => "portlet/gallery_images/gallery_image"
  %p{:style => "clear:both;"}
  
:javascript
  $('.gallery_images').sortable({
    itemSelector:".gallery_image",
    nested:true
  });
  

  