chore(legal): rename legal notice controller to a StaticPages

This commit is contained in:
Colin Darie 2023-03-21 12:44:04 +01:00
parent c71a41de13
commit 45eb53c26a
7 changed files with 39 additions and 36 deletions

View file

@ -1,4 +0,0 @@
class LegalNoticeController < ApplicationController
def index
end
end

View file

@ -0,0 +1,4 @@
class StaticPagesController < ApplicationController
def legal_notice
end
end

View file

@ -1,29 +0,0 @@
- content_for(:title, t('views.legal_notice.title'))
- content_for :footer do
= render partial: "root/footer"
#legal-notice.fr-pt-2w
.fr-container
%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')

View 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')

View file

@ -55,7 +55,7 @@ en:
mentions_legales:
label: "Legal notices"
title: "Legal notices regarding our platform"
url: "https://www.demarches-simplifiees.fr/mentions-legales"
url: "/mentions-legales"
releases:
label: "Releases notes"
title: "Our last updates"

View file

@ -58,7 +58,7 @@ fr:
mentions_legales:
label: "Mentions légales"
title: "Consulter nos Mentions légales"
url: "https://www.demarches-simplifiees.fr/mentions-legales"
url: "/mentions-legales"
releases:
label: "Nouveautés"
title: "Les dernière mises à jour de la plateforme"

View file

@ -193,7 +193,7 @@ Rails.application.routes.draw do
get "contact-admin", to: "support#admin"
get "mentions-legales", to: "legal_notice#index"
get "mentions-legales", to: "static_pages#legal_notice"
post "webhooks/sendinblue", to: "webhook#sendinblue"
post "webhooks/helpscout", to: "webhook#helpscout"