From 55f17f64a4a6f430abe08b9abaa31f2710c7bcb9 Mon Sep 17 00:00:00 2001 From: maatinito <15379878+maatinito@users.noreply.github.com> Date: Wed, 6 Mar 2019 13:43:30 -1000 Subject: [PATCH] Use predefined constants instead of values for URLs, mails --- app/views/layouts/_footer.html.haml | 4 ++-- app/views/users/sessions/link_sent.html.haml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml index 331b30681..136168ca2 100644 --- a/app/views/layouts/_footer.html.haml +++ b/app/views/layouts/_footer.html.haml @@ -11,6 +11,6 @@ \- = contact_link 'Contact' \- - = link_to 'FAQ', "https://faq.demarches-simplifiees.fr" + = link_to 'FAQ', FAQ_URL \- - = link_to 'Documentation', "http://doc.demarches-simplifiees.fr" + = link_to 'Documentation', DOC_URL diff --git a/app/views/users/sessions/link_sent.html.haml b/app/views/users/sessions/link_sent.html.haml index 0e22783bc..18b26242a 100644 --- a/app/views/users/sessions/link_sent.html.haml +++ b/app/views/users/sessions/link_sent.html.haml @@ -17,4 +17,4 @@ Si vous voyez cette page trop souvent, consultez notre aide : #{link_to 'https://faq.demarches-simplifiees.fr/article/34-je-dois-confirmer-mon-compte-a-chaque-connexion', 'https://faq.demarches-simplifiees.fr/article/34-je-dois-confirmer-mon-compte-a-chaque-connexion', target: '_blank', rel: 'noopener' } %br %br - En cas de difficultés, nous restons joignables sur #{link_to 'contact@demarches-simplifiees.fr', 'mailto:contact@demarches-simplifiees.fr'}. + En cas de difficultés, nous restons joignables sur #{link_to CONTACT_EMAIL, "mailto:#{CONTACT_EMAIL}"}.