diff --git a/app/views/portlets/render_public/_imagecontent.html.haml b/app/views/portlets/render_public/_imagecontent.html.haml index 3def24f..939cb33 100644 --- a/app/views/portlets/render_public/_imagecontent.html.haml +++ b/app/views/portlets/render_public/_imagecontent.html.haml @@ -23,7 +23,7 @@ -else -url ="" --url = request.protocol+HOSTNAME+url +-url = "http#{("s" if Rails.env.production?)}://"+HOSTNAME+url -style = "" -style = "text-align:center;" if input.alignement == "center" @@ -60,7 +60,7 @@ -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 =image_tag(url, :alt => input.alt.to_s, :style => styleimg )