Store in constant CGU url

This commit is contained in:
Mathieu Magnin 2018-01-24 18:10:40 +01:00
parent 8ca1c20e84
commit 11dbc595c7
4 changed files with 6 additions and 3 deletions

View file

@ -36,7 +36,8 @@
%p %p
%label{ style: 'font-weight: normal;' } %label{ style: 'font-weight: normal;' }
= f.check_box :autorisation_donnees = f.check_box :autorisation_donnees
 J'accepte <a href="https://tps.gitbooks.io/tps-documentation/content/conditions-generales-dutilisation.html" target="_blank">les CGU</a>.  J'accepte
= link_to "les CGU", CGU_URL, target: :blank
.row .row
.col-xs-5.col-xs-5 .col-xs-5.col-xs-5
.col-xs-2.col-xs-2 .col-xs-2.col-xs-2

View file

@ -7,6 +7,6 @@
\- \-
= link_to 'Statistiques', stats_path = 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') = link_to 'Contact', "mailto:"+t('dynamics.contact_email')

View file

@ -21,7 +21,7 @@
%li.footer-link %li.footer-link
= link_to "Statistiques", stats_path, :class => "footer-link" = link_to "Statistiques", stats_path, :class => "footer-link"
%li.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 %li.footer-column
%ul.footer-links %ul.footer-links

View file

@ -3,3 +3,5 @@ if Rails.env.production?
else else
SIADEURL = 'https://staging.entreprise.api.gouv.fr' SIADEURL = 'https://staging.entreprise.api.gouv.fr'
end end
CGU_URL = "https://tps.gitbooks.io/tps-documentation/content/conditions-generales-dutilisation.html"