
-if image_content.image_file

	-if image_content.style== "1"
		-url =image_content.image_file.file.large.medium.url

	-elsif image_content.style== "2"
		-url =image_content.image_file.file.large.medium.small.url

	-elsif image_content.style== "3"
		-url =image_content.image_file.file.square.url

	-elsif image_content.style== "4"
		-url =image_content.image_file.file.large.medium.small.thumb.url
	-elsif image_content.style== "5"
		-url =image_content.image_file.file.large.url
	

	=image_content.style

-else
	-url ="admin/default_image.png"
-style = ""
-style = "text-align:center;" if image_content.alignement == "center"


-style = "text-align:right;" if image_content.alignement == "right"
	

-style = "text-align:left;" if image_content.alignement == "left"

-styleimg=""
-styleimg += "width:"+image_content.width.to_s+"px;" if image_content.width?
-styleimg += "height:"+image_content.height.to_s+"px;" if image_content.height?



%p.img{:style =>style}
	=image_tag(url, :alt => image_content.alt.to_s, :style => styleimg)
	

="L'image peut être agrandie si l'on clique dessus" if image_content.expandable