
-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

-else
	-url =""
-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"

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

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