From bbcf945a8be858390a806730a32bf714bf7d2edd Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 6 Mar 2018 15:54:18 +0100 Subject: [PATCH 1/2] Add missing titles to some pages --- app/views/accessibilite/index.html.haml | 2 ++ app/views/stats/index.html.haml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/accessibilite/index.html.haml b/app/views/accessibilite/index.html.haml index 74a59de92..bc13252f0 100644 --- a/app/views/accessibilite/index.html.haml +++ b/app/views/accessibilite/index.html.haml @@ -1,3 +1,5 @@ +- content_for(:title, 'Accessibilité') + .accessibilite %h1.new-h1 Accessibilité diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index ea587e247..dec7d83b8 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -1,3 +1,5 @@ +- content_for(:title, 'Statistiques') + .statistiques %h1.new-h1 Statistiques From 55608414ad700f0ac24f437ef314e2e99a89dbc0 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 6 Mar 2018 15:56:09 +0100 Subject: [PATCH 2/2] Improve the title format --- app/views/layouts/new_application.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/new_application.html.haml b/app/views/layouts/new_application.html.haml index 8190bc41e..c214f26a0 100644 --- a/app/views/layouts/new_application.html.haml +++ b/app/views/layouts/new_application.html.haml @@ -8,7 +8,7 @@ = csrf_meta_tags %title - = content_for?(:title) ? yield(:title) : "demarches-simplifiees.fr" + = content_for?(:title) ? "#{yield(:title)} · demarches-simplifiees.fr" : "demarches-simplifiees.fr" = favicon_link_tag(image_url("favicons/16x16.png"), type: "image/png", sizes: "16x16") = favicon_link_tag(image_url("favicons/32x32.png"), type: "image/png", sizes: "32x32")