From de201fca0476baacde48b5af3f5b92aedd73425b Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 22 May 2018 17:18:06 +0200 Subject: [PATCH] Add FAQ_URL --- app/views/layouts/_new_footer.html.haml | 2 +- config/initializers/constants.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_new_footer.html.haml b/app/views/layouts/_new_footer.html.haml index 3568a88ac..462609955 100644 --- a/app/views/layouts/_new_footer.html.haml +++ b/app/views/layouts/_new_footer.html.haml @@ -37,6 +37,6 @@ %li.footer-link = link_to "Documentation de l'API", "/docs", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link - = link_to "FAQ", "http://demarches-simplifiees.helpscoutdocs.com/", :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" + = link_to "FAQ", FAQ_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer" %li.footer-link = link_to "Accessibilité", accessibilite_index_path, :class => "footer-link" diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index 373660a54..f9541e56f 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -2,3 +2,5 @@ DOC_URL = "https://doc.demarches-simplifiees.fr" LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/") CGU_URL = [DOC_URL, "cgu"].join("/") MENTIONS_LEGALES_URL = [CGU_URL, "4.-mentions-legales"].join("#") + +FAQ_URL = "http://demarches-simplifiees.helpscoutdocs.com/"