From 13d8d4bfd4d821a10bc4c8899fa6ae94196e9d93 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 14 Dec 2017 15:41:53 +0100 Subject: [PATCH] Add missing locals to partials called in the print template --- app/assets/stylesheets/new_design/print.scss | 4 ++++ app/views/new_gestionnaire/dossiers/print.html.haml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/new_design/print.scss b/app/assets/stylesheets/new_design/print.scss index ce5ca17d4..71c4bbe4c 100644 --- a/app/assets/stylesheets/new_design/print.scss +++ b/app/assets/stylesheets/new_design/print.scss @@ -57,3 +57,7 @@ th { } } } + +.updated-at { + display: none; +} diff --git a/app/views/new_gestionnaire/dossiers/print.html.haml b/app/views/new_gestionnaire/dossiers/print.html.haml index 1f4d1025a..f96a68df8 100644 --- a/app/views/new_gestionnaire/dossiers/print.html.haml +++ b/app/views/new_gestionnaire/dossiers/print.html.haml @@ -13,7 +13,7 @@ - champs = @dossier.ordered_champs.decorate - if champs.any? - = render partial: "champs", locals: { champs: champs, dossier: @dossier } + = render partial: "champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil } - if @dossier.procedure.use_api_carto %h3 Cartographie @@ -91,7 +91,7 @@ %ul.messages-list - @dossier.commentaires.each do |commentaire| %li - = render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire } + = render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire, messagerie_seen_at: nil } %script{ type: "text/javascript" } window.print();