From 152dce8da448ea4d99d59817aa23d20216a327df Mon Sep 17 00:00:00 2001 From: JG Date: Fri, 17 Jun 2022 14:54:31 +0100 Subject: [PATCH] fixed --- app/views/case_logs/_log_list.html.erb | 2 +- app/views/organisations/_organisation_list.html.erb | 2 +- app/views/users/_user_list.html.erb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/case_logs/_log_list.html.erb b/app/views/case_logs/_log_list.html.erb index 997c701f0..fe1cad110 100644 --- a/app/views/case_logs/_log_list.html.erb +++ b/app/views/case_logs/_log_list.html.erb @@ -1,7 +1,7 @@
<%= govuk_table do |table| %> <%= table.caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular], id: title.dasherize) do |caption| %> - <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "logs", path: request.path)) %> + <%= render(SearchResultCaptionComponent.new(searched: searched, count: pagy.count, item_label: item_label, total_count: total_count, item: "logs", path: request.path)) %> <%= govuk_link_to "Download (CSV)", "/logs.csv", type: "text/csv" %> <% end %> <%= table.head do |head| %> diff --git a/app/views/organisations/_organisation_list.html.erb b/app/views/organisations/_organisation_list.html.erb index c16366d19..e2d76d243 100644 --- a/app/views/organisations/_organisation_list.html.erb +++ b/app/views/organisations/_organisation_list.html.erb @@ -1,7 +1,7 @@
<%= govuk_table do |table| %> <%= table.caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> - <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "organisations", path: request.path)) %> + <%= render(SearchResultCaptionComponent.new(searched: searched, count: pagy.count, item_label: item_label, total_count: total_count, item: "organisations", path: request.path)) %> <% end %> <%= table.head do |head| %> <%= head.row do |row| %> diff --git a/app/views/users/_user_list.html.erb b/app/views/users/_user_list.html.erb index eb24a9885..1f01b295f 100644 --- a/app/views/users/_user_list.html.erb +++ b/app/views/users/_user_list.html.erb @@ -1,7 +1,7 @@
<%= govuk_table do |table| %> <%= table.caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> - <%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "users", path: request.path)) %> + <%= render(SearchResultCaptionComponent.new(searched: searched, count: pagy.count, item_label: item_label, total_count: total_count, item: "users", path: request.path)) %> <% if current_user.support? %> <% query = searched.present? ? "?search=#{searched}" : nil %> <%= govuk_link_to "Download (CSV)", "/users.csv#{query}", type: "text/csv" %>