Merge pull request #8762 from demarches-simplifiees/8589-legal-notice
Accessibilité: internalise la page de mentions légales
This commit is contained in:
commit
9a38da09ed
11 changed files with 70 additions and 7 deletions
|
@ -17,8 +17,8 @@ $new-h2-margin-bottom: 3 * $default-space;
|
|||
}
|
||||
|
||||
.new-h1 {
|
||||
margin-bottom: $new-h1-margin-bottom;
|
||||
font-size: 41px;
|
||||
margin-bottom: 3.75rem;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.new-h2 {
|
||||
|
|
4
app/controllers/static_pages_controller.rb
Normal file
4
app/controllers/static_pages_controller.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
class StaticPagesController < ApplicationController
|
||||
def legal_notice
|
||||
end
|
||||
end
|
|
@ -13,7 +13,7 @@
|
|||
%h3.fr-footer__top-cat= t("links.footer.top_labels.legals")
|
||||
%ul.fr-footer__top-list
|
||||
%li.fr-footer__top-link
|
||||
= link_to t("links.footer.mentions_legales.label"), t("links.footer.mentions_legales.url"), title: t("links.footer.mentions_legales.title"), class: "fr-footer__top-link", rel: "noopener noreferrer"
|
||||
= link_to t("links.footer.mentions_legales.label"), MENTIONS_LEGALES_URL, title: t("links.footer.mentions_legales.title"), class: "fr-footer__top-link", rel: "noopener noreferrer"
|
||||
%li.fr-footer__top-link
|
||||
= link_to t("links.footer.suivi.label"), suivi_path, title: t("links.footer.suivi.title"), class: "fr-footer__top-link"
|
||||
%li.fr-footer__top-link
|
||||
|
|
32
app/views/static_pages/legal_notice.html.haml
Normal file
32
app/views/static_pages/legal_notice.html.haml
Normal file
|
@ -0,0 +1,32 @@
|
|||
- content_for(:title, t('views.legal_notice.title'))
|
||||
- content_for :footer do
|
||||
= render partial: "root/footer"
|
||||
|
||||
#legal-notice.fr-pt-2w
|
||||
.fr-container.fr-my-4w
|
||||
.fr-grid-row
|
||||
.fr-col-xl-2
|
||||
.fr-col-xl-8
|
||||
%h1.fr-mb-4w
|
||||
= t('views.legal_notice.title')
|
||||
|
||||
.fr-mb-4w
|
||||
%h2
|
||||
= t('views.legal_notice.editing')
|
||||
%p.fr-mb-2w= t('views.legal_notice.editing_content.line_one')
|
||||
%p.fr-mb-2w= t('views.legal_notice.editing_content.line_two')
|
||||
%p.fr-mb-2w= t('views.legal_notice.editing_content.line_three')
|
||||
|
||||
.fr-mb-4w
|
||||
%h2
|
||||
= t('views.legal_notice.direction')
|
||||
%p.fr-mb-2w= t('views.legal_notice.direction_content')
|
||||
|
||||
.fr-mb-4w
|
||||
%h2
|
||||
= t('views.legal_notice.hosting')
|
||||
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_one')
|
||||
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_two')
|
||||
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_three')
|
||||
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_four')
|
||||
%p.fr-mb-2w= t('views.legal_notice.hosting_content.line_five')
|
|
@ -2,6 +2,6 @@
|
|||
%li.fr-footer__bottom-item
|
||||
= link_to t("links.footer.accessibilite.label"), t("links.footer.accessibilite.url"), title: t("links.footer.accessibilite.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer"
|
||||
%li.fr-footer__bottom-item
|
||||
= link_to t("links.footer.mentions_legales.label"), t("links.footer.mentions_legales.url"), title: t("links.footer.mentions_legales.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer"
|
||||
= link_to t("links.footer.mentions_legales.label"), MENTIONS_LEGALES_URL, title: t("links.footer.mentions_legales.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer"
|
||||
%li.fr-footer__bottom-item
|
||||
= link_to t("links.footer.cookies.label"), suivi_path, title: t("links.footer.cookies.title"), class: "fr-footer__bottom-link"
|
||||
|
|
|
@ -29,7 +29,7 @@ INSTRUCTEUR_TUTORIAL_URL = [DOC_URL, "tutoriels", "tutoriel-accompagnateur"].joi
|
|||
CADRE_JURIDIQUE_URL = [DOC_URL, "tutoriels/video-le-cadre-juridique"].join("/")
|
||||
LISTE_DES_DEMARCHES_URL = [DOC_URL, "listes-des-demarches"].join("/")
|
||||
CGU_URL = ENV.fetch("CGU_URL", [DOC_URL, "cgu"].join("/"))
|
||||
MENTIONS_LEGALES_URL = ENV.fetch("MENTIONS_LEGALES_URL", [DOC_URL, "mentions-legales"].join("/"))
|
||||
MENTIONS_LEGALES_URL = ENV.fetch("MENTIONS_LEGALES_URL", "/mentions-legales")
|
||||
ACCESSIBILITE_URL = ENV.fetch("ACCESSIBILITE_URL", [DOC_URL, "declaration-daccessibilite"].join("/"))
|
||||
API_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "graphql"].join("/")
|
||||
WEBHOOK_DOC_URL = [DOC_URL, "pour-aller-plus-loin", "webhook"].join("/")
|
||||
|
|
|
@ -100,6 +100,17 @@ en:
|
|||
instructeur: 'Go to procedures list'
|
||||
admin: 'Go to administration panel'
|
||||
views:
|
||||
legal_notice:
|
||||
title: "Legal Notices"
|
||||
editing: "Editor"
|
||||
editing_content:
|
||||
line_one: "Interministerial Directorate for Digital Affairs (DINUM)"
|
||||
direction: "Publishing Department"
|
||||
direction_content: "Ms. Stéphanie Schaer , Interministerial Director of Digital Affairs."
|
||||
hosting: "Hosting provider"
|
||||
hosting_content:
|
||||
line_four: "VAT NUMBER: FR 22 424 761 419"
|
||||
line_five: "Head office : 2 rue Kellermann - 59100 Roubaix - France."
|
||||
commencer:
|
||||
show:
|
||||
start_procedure: Start the procedure
|
||||
|
|
|
@ -91,6 +91,22 @@ fr:
|
|||
instructeur: 'Aller à la liste des démarches'
|
||||
admin: "Aller au panneau d’administration"
|
||||
views:
|
||||
legal_notice:
|
||||
title: "Mentions légales"
|
||||
editing: "Éditeur"
|
||||
editing_content:
|
||||
line_one: "Direction Interministérielle au Numérique (DINUM)"
|
||||
line_two: "20 Avenue de Ségur"
|
||||
line_three: "75007 PARIS"
|
||||
direction: "Direction de la publication"
|
||||
direction_content: "Madame Stéphanie Schaer , Directrice interministérielle du numérique."
|
||||
hosting: "Prestataire d'hébergement"
|
||||
hosting_content:
|
||||
line_one: "OVH"
|
||||
line_two: "RCS Roubaix – Tourcoing 424 761 419 00045"
|
||||
line_three: "Code APE 6202A"
|
||||
line_four: "N° TVA : FR 22 424 761 419"
|
||||
line_five: "Siège social : 2 rue Kellermann - 59100 Roubaix - France."
|
||||
commencer:
|
||||
show:
|
||||
start_procedure: Commencer la démarche
|
||||
|
|
|
@ -55,7 +55,6 @@ en:
|
|||
mentions_legales:
|
||||
label: "Legal notices"
|
||||
title: "Legal notices regarding our platform"
|
||||
url: "https://doc.demarches-simplifiees.fr/mentions-legales"
|
||||
releases:
|
||||
label: "Releases notes"
|
||||
title: "Our last updates"
|
||||
|
|
|
@ -58,7 +58,6 @@ fr:
|
|||
mentions_legales:
|
||||
label: "Mentions légales"
|
||||
title: "Consulter nos Mentions légales"
|
||||
url: "https://doc.demarches-simplifiees.fr/mentions-legales"
|
||||
releases:
|
||||
label: "Nouveautés"
|
||||
title: "Les dernière mises à jour de la plateforme"
|
||||
|
|
|
@ -195,6 +195,8 @@ Rails.application.routes.draw do
|
|||
|
||||
get "contact-admin", to: "support#admin"
|
||||
|
||||
get "mentions-legales", to: "static_pages#legal_notice"
|
||||
|
||||
post "webhooks/sendinblue", to: "webhook#sendinblue"
|
||||
post "webhooks/helpscout", to: "webhook#helpscout"
|
||||
post "webhooks/helpscout_support_dev", to: "webhook#helpscout_support_dev"
|
||||
|
|
Loading…
Add table
Reference in a new issue