diff --git a/app/assets/stylesheets/public.scss b/app/assets/stylesheets/public.scss index 626c01e..92da5df 100644 --- a/app/assets/stylesheets/public.scss +++ b/app/assets/stylesheets/public.scss @@ -442,3 +442,17 @@ h2{ } } +.text-center { + text-align: center; +} +.text-right { + text-align: right; +} +.text-justify { + text-align: justify; +} + +img{ + max-width:100%; +} + diff --git a/app/views/portlets/render_public/_imagecontent.html.haml b/app/views/portlets/render_public/_imagecontent.html.haml index bb6b8e1..98f7c29 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 = "http#{("s" if Rails.env.production?)}://"+HOSTNAME+url -style = "" -style = "text-align:center;width:100%;" if input.alignement == "center" diff --git a/config/environments/production.rb b/config/environments/production.rb index 96f1ef5..b7f624b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -77,7 +77,7 @@ Rails.application.configure do # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false - HOSTNAME="payreagri.quartz.xyz" + HOSTNAME="payrejardinerie.fr" #config.action_mailer.delivery_method = :file config.action_mailer.default_url_options = { :host => HOSTNAME }