.portlet.gallery_content
	%h2=input.name
	.description
		=raw input.description
	.gallery_images	
		-input.gallery_images.each do |gallery_images|
			=link_to image_tag(gallery_images.image_file.file.square.url, :alt => "#{gallery_images.title}"), gallery_images.image_file.file.large.url, :rel => "prettyPhoto[gallery_#{input.id}]"
		%p{:style => "clear:both;"}
	

