From 4e8a6f6b11fb7f3ac57db5873a55772ca002ba66 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Fri, 24 Feb 2023 17:45:01 +0100 Subject: [PATCH] show published_at only if exist --- app/views/administrateurs/procedures/_detail.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/administrateurs/procedures/_detail.html.haml b/app/views/administrateurs/procedures/_detail.html.haml index 2728ece46..2b4e15b4b 100644 --- a/app/views/administrateurs/procedures/_detail.html.haml +++ b/app/views/administrateurs/procedures/_detail.html.haml @@ -11,7 +11,7 @@ %td= procedure.estimated_dossiers_count %td= procedure.administrateurs.count %td= t procedure.aasm_state, scope: 'activerecord.attributes.procedure.aasm_state' - %td= l(procedure.published_at, format: :message_date_without_time) + %td= l(procedure.published_at, format: :message_date_without_time) if procedure.published_at %td= link_to('Cloner', admin_procedure_clone_path(procedure.id, from_new_from_existing: true), 'data-method' => :put, class: 'fr-btn fr-btn--tertiary fr-btn--sm')