From 680d80b5f23bc114b7a1c304e96e33dc2a4a0a2f Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Mon, 11 Feb 2019 17:38:06 +0100 Subject: [PATCH 1/4] added en_construction date to the title of the request --- app/views/new_user/dossiers/show/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_user/dossiers/show/_header.html.haml b/app/views/new_user/dossiers/show/_header.html.haml index c3686c8bc..a6c4a1577 100644 --- a/app/views/new_user/dossiers/show/_header.html.haml +++ b/app/views/new_user/dossiers/show/_header.html.haml @@ -5,7 +5,7 @@ .title-container %span.icon.folder %h1= dossier.procedure.libelle - %h2 Dossier nº #{dossier.id} + %h2 Dossier nº #{dossier.id} - Déposé le #{dossier.en_construction_at.strftime("%d/%m/%Y")} - if current_user.owns?(dossier) .header-actions From c2048e98792253af64d42dcc12249c5e77417660 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Tue, 12 Feb 2019 12:06:40 +0100 Subject: [PATCH 2/4] more accurate deposit date, full month + I18N --- app/views/new_user/dossiers/show/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_user/dossiers/show/_header.html.haml b/app/views/new_user/dossiers/show/_header.html.haml index a6c4a1577..f35231ae5 100644 --- a/app/views/new_user/dossiers/show/_header.html.haml +++ b/app/views/new_user/dossiers/show/_header.html.haml @@ -5,7 +5,7 @@ .title-container %span.icon.folder %h1= dossier.procedure.libelle - %h2 Dossier nº #{dossier.id} - Déposé le #{dossier.en_construction_at.strftime("%d/%m/%Y")} + %h2 Dossier nº #{dossier.id} - Déposé le #{I18n.l(dossier.created_at, format: '%d %B %Y')} - if current_user.owns?(dossier) .header-actions From ec6af852bb349d0ae76d230ee29517c709604617 Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Tue, 12 Feb 2019 15:23:27 +0100 Subject: [PATCH 3/4] using en_contruction_at for initial deposit date --- app/views/new_user/dossiers/show/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_user/dossiers/show/_header.html.haml b/app/views/new_user/dossiers/show/_header.html.haml index f35231ae5..21a4dccf1 100644 --- a/app/views/new_user/dossiers/show/_header.html.haml +++ b/app/views/new_user/dossiers/show/_header.html.haml @@ -5,7 +5,7 @@ .title-container %span.icon.folder %h1= dossier.procedure.libelle - %h2 Dossier nº #{dossier.id} - Déposé le #{I18n.l(dossier.created_at, format: '%d %B %Y')} + %h2 Dossier nº #{dossier.id} - Déposé le #{I18n.l(dossier.en_construction_at, format: '%d %B %Y')} - if current_user.owns?(dossier) .header-actions From 7c1a4ff9989432b435ffdc72ca25668c5a03cc9e Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Tue, 12 Feb 2019 16:43:51 +0100 Subject: [PATCH 4/4] =?UTF-8?q?simplication=20de=20l'appel=20=C3=A0=20I18n?= =?UTF-8?q?.l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/new_user/dossiers/show/_header.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/new_user/dossiers/show/_header.html.haml b/app/views/new_user/dossiers/show/_header.html.haml index 21a4dccf1..b49179440 100644 --- a/app/views/new_user/dossiers/show/_header.html.haml +++ b/app/views/new_user/dossiers/show/_header.html.haml @@ -5,7 +5,7 @@ .title-container %span.icon.folder %h1= dossier.procedure.libelle - %h2 Dossier nº #{dossier.id} - Déposé le #{I18n.l(dossier.en_construction_at, format: '%d %B %Y')} + %h2 Dossier nº #{dossier.id} - Déposé le #{l(dossier.en_construction_at, format: '%d %B %Y')} - if current_user.owns?(dossier) .header-actions