suite
This commit is contained in:
parent
b4b937cb01
commit
66ce8f975e
@ -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)
|
||||
|
||||
|
||||
|
||||
|
@ -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|
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user