From 11dbc595c74deebd38a87a4101d350a0d0cb9c86 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Wed, 24 Jan 2018 18:10:40 +0100 Subject: [PATCH] Store in constant CGU url --- app/views/dossiers/etapes/etape_2/_individual.html.haml | 3 ++- app/views/layouts/_footer.html.haml | 2 +- app/views/layouts/_new_footer.html.haml | 2 +- config/initializers/urls.rb | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/dossiers/etapes/etape_2/_individual.html.haml b/app/views/dossiers/etapes/etape_2/_individual.html.haml index 2a3abc435..bb7c8e55f 100644 --- a/app/views/dossiers/etapes/etape_2/_individual.html.haml +++ b/app/views/dossiers/etapes/etape_2/_individual.html.haml @@ -36,7 +36,8 @@ %p %label{ style: 'font-weight: normal;' } = f.check_box :autorisation_donnees -  J'accepte les CGU. +  J'accepte + = link_to "les CGU", CGU_URL, target: :blank .row .col-xs-5.col-xs-5 .col-xs-2.col-xs-2 diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml index 71379539c..d2ed0870a 100644 --- a/app/views/layouts/_footer.html.haml +++ b/app/views/layouts/_footer.html.haml @@ -7,6 +7,6 @@ \- = link_to 'Statistiques', stats_path \- - = link_to 'CGU / Mentions légales', "https://tps.gitbooks.io/tps-documentation/content/conditions-generales-dutilisation.html" + = link_to 'CGU / Mentions légales', CGU_URL \- = link_to 'Contact', "mailto:"+t('dynamics.contact_email') diff --git a/app/views/layouts/_new_footer.html.haml b/app/views/layouts/_new_footer.html.haml index 7b421a978..97e7fb821 100644 --- a/app/views/layouts/_new_footer.html.haml +++ b/app/views/layouts/_new_footer.html.haml @@ -21,7 +21,7 @@ %li.footer-link = link_to "Statistiques", stats_path, :class => "footer-link" %li.footer-link - = link_to "CGU", "https://tps.gitbooks.io/tps-documentation/content/conditions-generales-dutilisation.html", :class => "footer-link", :target => "_blank" + = link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank" %li.footer-column %ul.footer-links diff --git a/config/initializers/urls.rb b/config/initializers/urls.rb index 7bc572d7d..cf385571e 100644 --- a/config/initializers/urls.rb +++ b/config/initializers/urls.rb @@ -3,3 +3,5 @@ if Rails.env.production? else SIADEURL = 'https://staging.entreprise.api.gouv.fr' end + +CGU_URL = "https://tps.gitbooks.io/tps-documentation/content/conditions-generales-dutilisation.html"