From fbcf3de74c5be476a6374826039ed5b531a2e58b Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Fri, 3 Apr 2020 17:15:35 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20du=20motif=20recherch=C3=A9=20dans=20l'?= =?UTF-8?q?=C3=A9cran=20de=20r=C3=A9sultats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/dossiers/index.html.haml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/users/dossiers/index.html.haml b/app/views/users/dossiers/index.html.haml index b6e169488..81d1709ec 100644 --- a/app/views/users/dossiers/index.html.haml +++ b/app/views/users/dossiers/index.html.haml @@ -1,11 +1,16 @@ -- content_for(:title, "Dossiers") +- if @search_terms.present? + - content_for(:title, "Recherche : #{@search_terms}") +- else + - content_for(:title, "Dossiers") - content_for :footer do = render partial: "users/dossiers/index_footer" .dossiers-headers.sub-header .container - - if @dossiers_invites.count == 0 + - if @search_terms.present? + %h1.page-title Résultat de la recherche pour « #{@search_terms} » + - elsif @dossiers_invites.count == 0 %h1.page-title Mes dossiers - else