Browse Source

fixed

pull/673/head
JG 3 years ago
parent
commit
152dce8da4
  1. 2
      app/views/case_logs/_log_list.html.erb
  2. 2
      app/views/organisations/_organisation_list.html.erb
  3. 2
      app/views/users/_user_list.html.erb

2
app/views/case_logs/_log_list.html.erb

@ -1,7 +1,7 @@
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<%= 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| %>

2
app/views/organisations/_organisation_list.html.erb

@ -1,7 +1,7 @@
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<%= 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| %>

2
app/views/users/_user_list.html.erb

@ -1,7 +1,7 @@
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<%= 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" %>

Loading…
Cancel
Save