chore(legal): rename legal notice controller to a StaticPages
This commit is contained in:
parent
c71a41de13
commit
45eb53c26a
7 changed files with 39 additions and 36 deletions
|
@ -1,4 +0,0 @@
|
|||
class LegalNoticeController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
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
|
|
@ -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')
|
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')
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue