From 2d7ab162dd3b5211cf7b5fe1e1e92b1dea8c3a9f Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 30 Oct 2018 15:37:03 +0100 Subject: [PATCH] suite --- app/views/portlets/render_public/_imagecontent.html.haml | 2 +- app/views/public/articles/_article_img.html.haml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/portlets/render_public/_imagecontent.html.haml b/app/views/portlets/render_public/_imagecontent.html.haml index 388f6f5..c8e6356 100644 --- a/app/views/portlets/render_public/_imagecontent.html.haml +++ b/app/views/portlets/render_public/_imagecontent.html.haml @@ -25,7 +25,7 @@ -else -url ="" --url = "http#{("" if Rails.env.production?)}://"+HOSTNAME+url +-url = "https#{("" if Rails.env.production?)}://"+HOSTNAME+url -style = "" -style = "text-align:center;width:100%;" if input.alignement == "center" diff --git a/app/views/public/articles/_article_img.html.haml b/app/views/public/articles/_article_img.html.haml index 229c6a1..953abe0 100644 --- a/app/views/public/articles/_article_img.html.haml +++ b/app/views/public/articles/_article_img.html.haml @@ -1,7 +1,7 @@ -if article.without_text_image_file - -img_url = "https://payrepmc.quartz.xyz"+article.without_text_image_file.file.large.url + -img_url = "https://payremaintenance.fr"+article.without_text_image_file.file.large.url -elsif article.image_file - -img_url = "https://payrepmc.quartz.xyz"+article.image_file.file.large.url + -img_url = "https://payremaintenance.fr"+article.image_file.file.large.url -else -img_url = ""