diff --git a/app/controllers/public/menu_items_controller.rb b/app/controllers/public/menu_items_controller.rb index b42d7fc..8d0d796 100644 --- a/app/controllers/public/menu_items_controller.rb +++ b/app/controllers/public/menu_items_controller.rb @@ -74,12 +74,12 @@ class Public::MenuItemsController < ApplicationController require 'open-uri' - @articles_rss = JSON.parse(open('http://payresas.quartz.xyz/admin/articles/rss.xml?cat_id=2').read) + @articles_rss = JSON.parse(open('https://groupe-payre.fr/admin/articles/rss.xml?cat_id=2').read) - @breves_rss = JSON.parse(open('http://payresas.quartz.xyz/admin/articles/rss.xml?cat_id=2&breve=true').read) + @breves_rss = JSON.parse(open('https://groupe-payre.fr/admin/articles/rss.xml?cat_id=2&breve=true').read) diff --git a/app/models/contact.rb b/app/models/contact.rb index 0d5657c..74ec773 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -31,7 +31,7 @@ class Contact < ActiveRecord::Base :provenance_id => self.provenance_id } - api_url = "http://payresas.quartz.xyz/admin/contacts/api" + api_url = "https://groupe-payre.fr/admin/contacts/api" #api_url ="http://localhost:3030/admin/contacts/api" @c = Curl::Easy.new(api_url) do |curl| diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index eedf781..5086868 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -172,7 +172,7 @@ %div{:class => "actu"} - .img.with_ratio{:style => "background-image:url('http://payresas.quartz.xyz#{article['image_url']}');background-size:100%;background-size:cover;", :data => {:ratio => 0.62}} + .img.with_ratio{:style => "background-image:url('https://groupe-payre.fr#{article['image_url']}');background-size:100%;background-size:cover;", :data => {:ratio => 0.62}} @@ -183,7 +183,7 @@ =simple_format article["description"] .cta - =link_to "http://payresas.quartz.xyz"+article["url"].to_s, :class => "btn", :target => "_blank" do + =link_to "https://groupe-payre.fr"+article["url"].to_s, :class => "btn", :target => "_blank" do =qit("Lire l'article") > .clear @@ -196,7 +196,7 @@ L'actu du groupe -@breves_rss[0..10].each do |article| - =link_to "http://payresas.quartz.xyz"+article["url"].to_s, :target => "_blank", :style => "text-decoration:none;" do + =link_to "https://groupe-payre.fr"+article["url"].to_s, :target => "_blank", :style => "text-decoration:none;" do %div{:class =>"breve"} .color{:style => "background:#{Category.find(article['category_id']).color};"} =l (Time.parse(article['date'].to_s)), :format => "%d %b"