From efa7eadf24f3032d2663d1542ba2896e0b742006 Mon Sep 17 00:00:00 2001 From: JG Date: Thu, 26 May 2022 14:47:34 +0100 Subject: [PATCH] unhiding search when no results --- app/views/case_logs/index.html.erb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/views/case_logs/index.html.erb b/app/views/case_logs/index.html.erb index bc1e8b0f0..37a09e325 100644 --- a/app/views/case_logs/index.html.erb +++ b/app/views/case_logs/index.html.erb @@ -19,12 +19,10 @@ <%= render partial: "log_filters" %> - <% if @case_logs.present? %> -
- <%= render SearchComponent.new(current_user:, search_label: "Search by log ID, tenant code, property reference or postcode", value: @searched) %> -
- <%= render partial: "log_list", locals: { case_logs: @case_logs, title: "Logs", pagy: @pagy, searched: @searched, item_label:, total_count: @total_count } %> - <%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "logs" } %> -
- <% end %> +
+ <%= render SearchComponent.new(current_user:, search_label: "Search by log ID, tenant code, property reference or postcode", value: @searched) %> +
+ <%= render partial: "log_list", locals: { case_logs: @case_logs, title: "Logs", pagy: @pagy, searched: @searched, item_label:, total_count: @total_count } %> + <%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "logs" } %> +