From dda9b90b7b7800fa28373fb87cf73713563a6ca7 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Sat, 10 Mar 2018 12:51:05 +0100 Subject: [PATCH] suite --- app/views/portlets/render_public/_gallerycontent.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/portlets/render_public/_gallerycontent.html.haml b/app/views/portlets/render_public/_gallerycontent.html.haml index 0048652..b7dd487 100644 --- a/app/views/portlets/render_public/_gallerycontent.html.haml +++ b/app/views/portlets/render_public/_gallerycontent.html.haml @@ -72,7 +72,7 @@ .rea-gal.img_gallery -input.gallery_images.each do |gallery_images| - =link_to image_tag(gallery_images.image_file.file.square.url, :alt => "#{gallery_images.title}"), gallery_images.image_file.file.large.url, :title => gallery_images.title + =link_to image_tag("http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.square.url, :alt => "#{gallery_images.title}"), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url, :title => gallery_images.title .clear @@ -91,7 +91,7 @@ %ul.slides-container -input.gallery_images.each do |gallery_images| %li - =image_tag gallery_images.image_file.file.large.url + =image_tag "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url .desc -if gallery_images.title? @@ -114,6 +114,6 @@ .rea-gal.img_gallery -input.gallery_images.each do |gallery_images| - =link_to image_tag(gallery_images.image_file.file.large.medium.small.thumb.url, :alt => "#{gallery_images.title}"), gallery_images.image_file.file.large.url, :title => (gallery_images.title if input.show_title) + =link_to image_tag("http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.medium.small.thumb.url, :alt => "#{gallery_images.title}"), "http#{("s" if Rails.env.production?)}://"+HOSTNAME+gallery_images.image_file.file.large.url, :title => (gallery_images.title if input.show_title) \ No newline at end of file