-if input.image_file -if input.style== "1" -url =input.image_file.file.large.medium.url -elsif input.style== "2" -url =input.image_file.file.large.medium.small.url -elsif input.style== "3" -url =input.image_file.file.square.url -elsif input.style== "4" -url =input.image_file.file.large.medium.small.thumb.url -elsif input.style== "5" -url =input.image_file.file.large.url -elsif input.style== "6" -url =input.image_file.file.url -else -url ="" -url = "http://"+request.host_with_port+url -style = "" -style = "text-align:center;" if input.alignement == "center" -style = "float:right;" if input.alignement == "right" -style = "float:left;" if input.alignement == "left" -style = false if input.alignement == "none" - if input.cible -link = input.cible.cible_url -styleimg="" -styleimg += "width:"+input.width.to_s+"px;" if input.width? -styleimg += "height:"+input.height.to_s+"px;" if input.height? =raw '