From 1e9d5b753c895514668370ee0ef3da0afe582800 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 3 Oct 2022 13:43:29 +0200 Subject: [PATCH] refactor(footer): licence sentence in partial --- app/views/root/_footer.html.haml | 6 +----- app/views/shared/_footer_copy.html.haml | 5 +++++ app/views/users/_procedure_footer.html.haml | 6 +----- 3 files changed, 7 insertions(+), 10 deletions(-) create mode 100644 app/views/shared/_footer_copy.html.haml diff --git a/app/views/root/_footer.html.haml b/app/views/root/_footer.html.haml index 753d76d00..48d0d899d 100644 --- a/app/views/root/_footer.html.haml +++ b/app/views/root/_footer.html.haml @@ -66,8 +66,4 @@ .fr-footer__bottom = render partial: 'users/general_footer_row' - .fr-footer__bottom-copy - %p - Sauf mention contraire, tous les contenus de ce site sont sous - %a{ href: "https://github.com/etalab/licence-ouverte/blob/master/LO.md", target:"_blank" } licence etalab-2.0 - %br + = render partial: 'shared/footer_copy' diff --git a/app/views/shared/_footer_copy.html.haml b/app/views/shared/_footer_copy.html.haml new file mode 100644 index 000000000..b14146fe4 --- /dev/null +++ b/app/views/shared/_footer_copy.html.haml @@ -0,0 +1,5 @@ +.fr-footer__bottom-copy + %p + Sauf mention contraire, tous les contenus de ce site sont sous + %a{ href: "https://github.com/etalab/licence-ouverte/blob/master/LO.md", target:"_blank", class: "fr-underlined" } licence etalab-2.0 + %br diff --git a/app/views/users/_procedure_footer.html.haml b/app/views/users/_procedure_footer.html.haml index a1d8b1153..3046ececa 100644 --- a/app/views/users/_procedure_footer.html.haml +++ b/app/views/users/_procedure_footer.html.haml @@ -81,8 +81,4 @@ .fr-footer__bottom = render partial: 'users/general_footer_row', locals: { dossier: dossier } - .fr-footer__bottom-copy - %p - Sauf mention contraire, tous les contenus de ce site sont sous - %a.fr-underlined{ href: "https://github.com/etalab/licence-ouverte/blob/master/LO.md", target:"_blank" } licence etalab-2.0 - %br + = render partial: 'shared/footer_copy'