fix(accessibility-statement): dynamic content depending of instance

This commit is contained in:
Colin Darie 2023-03-27 10:52:27 +02:00
parent ed3b2cca6f
commit 1a9f9a5803
3 changed files with 11 additions and 9 deletions

View file

@ -10,7 +10,7 @@
%h1.fr-mb-4w
= t('views.accessibility_statement.title')
%p.fr-mb-2w= t('views.accessibility_statement.line_one')
%p.fr-mb-2w= t('views.accessibility_statement.line_two') + " (" +ENV["APP_HOST"]+ ")."
%p.fr-mb-2w= t('views.accessibility_statement.line_two', app_name: APPLICATION_NAME, host: URI(APPLICATION_BASE_URL).host)
%div
%h2
@ -84,15 +84,17 @@
%li
= link_to t("views.accessibility_statement.preparation.page_three.label"), MENTIONS_LEGALES_URL
%li
= link_to t("views.accessibility_statement.preparation.page_four.label"), ACCESSIBILITE_URL
= link_to t("views.accessibility_statement.preparation.page_four.label"), ACCESSIBILITE_URL
%li
= link_to t("views.accessibility_statement.preparation.page_five.label"), new_user_session_path
%li
= t("views.accessibility_statement.preparation.page_six")
%li
= link_to t("views.accessibility_statement.preparation.page_seven.label"), t("views.accessibility_statement.preparation.page_seven.url"), title: t("views.accessibility_statement.preparation.page_seven.title"), target: "_blank", rel: "noopener noreferrer"
= link_to t("views.accessibility_statement.preparation.page_seven.label"), t("views.accessibility_statement.preparation.page_seven.url"),
title: t("views.accessibility_statement.preparation.page_seven.title"), **external_link_attributes
%li
= link_to t("views.accessibility_statement.preparation.page_eight.label"), t("views.accessibility_statement.preparation.page_eight.url"), title: t("views.accessibility_statement.preparation.page_eight.title"), target: "_blank", rel: "noopener noreferrer"
= link_to t("views.accessibility_statement.preparation.page_eight.label"), t("views.accessibility_statement.preparation.page_eight.url"),
title: t("views.accessibility_statement.preparation.page_eight.title"), **external_link_attributes
%li
= t("views.accessibility_statement.preparation.page_nine")
%li
@ -120,7 +122,7 @@
= mail_to CONTACT_EMAIL
%li
= t('views.accessibility_statement.contact.infos.phone_html')
= phone_to CONTACT_PHONE.gsub(" "), CONTACT_PHONE
= phone_to CONTACT_PHONE.gsub(" ", ""), CONTACT_PHONE
%li
= t('views.accessibility_statement.contact.infos.adress_html')

View file

@ -114,7 +114,7 @@ en:
accessibility_statement:
title: "Accessibility statement"
line_one: "DINUM is committed to making its service accessible in accordance with Article 47 of Law No. 2005-102 of 11 February 2005."
line_two: "This accessibility statement applies to Démarches simplifiées"
line_two: "This accessibility statement applies to %{app_name} (%{host})."
compliance:
title: "Compliance status"
line_one_html: "The website Démarches simplifiées is <strong>partially compliant</strong> with the General Accessibility Guidelines (RGAA) version 4."
@ -158,7 +158,7 @@ en:
tool_six: "Stylus (Firefox extension)"
subtitle_four: "Pages of the site subject to the compliance check"
page_one:
label: "Démarches simplifiées"
label: "Home"
page_two:
label: "Contact"
page_three:

View file

@ -110,7 +110,7 @@ fr:
accessibility_statement:
title: "Déclaration daccessibilité"
line_one: "La DINUM sengage à rendre son service accessible, conformément à larticle 47 de la loi n° 2005-102 du 11 février 2005."
line_two: "Cette déclaration daccessibilité sapplique à Démarches simplifiées"
line_two: "Cette déclaration daccessibilité sapplique à %{app_name} (%{host})."
compliance:
title: "État de conformité"
line_one_html: "Le site Démarches simplifiées est <strong>partiellement conforme</strong> avec le référentiel général damélioration de laccessibilité (RGAA) version 4."
@ -154,7 +154,7 @@ fr:
tool_six: "Stylus (extension Firefox)"
subtitle_four: "Pages du site ayant fait lobjet de la vérification de conformité"
page_one:
label: "Démarches simplifiées"
label: "Accueil"
page_two:
label: "Contact"
page_three: