This commit is contained in:
Nicolas Bally 2018-03-10 11:57:20 +01:00
parent 6d042cc472
commit cce38f017f

View File

@ -23,7 +23,7 @@
-else -else
-url ="" -url =""
-url = request.protocol+HOSTNAME+url -url = "http#{("s" if Rails.env.production?)}://"+HOSTNAME+url
-style = "" -style = ""
-style = "text-align:center;" if input.alignement == "center" -style = "text-align:center;" if input.alignement == "center"
@ -60,7 +60,7 @@
-elsif input.expandable -elsif input.expandable
=link_to image_tag(url, :alt => input.alt.to_s, :style => styleimg ), request.protocol+HOSTNAME+(input.image_file ? input.image_file.file.large.url : ""), :title => input.alt.to_s, :class => "expandable_image" =link_to image_tag(url, :alt => input.alt.to_s, :style => styleimg ), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+(input.image_file ? input.image_file.file.large.url : ""), :title => input.alt.to_s, :class => "expandable_image"
-else -else
=image_tag(url, :alt => input.alt.to_s, :style => styleimg ) =image_tag(url, :alt => input.alt.to_s, :style => styleimg )