You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
<h2 class="govuk-body"> |
|
<div class="govuk-grid-row"> |
|
<div class="govuk-grid-column-three-quarters"> |
|
<%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "logs", path: request.path)) %> |
|
<% if logs&.any? %> |
|
<%= govuk_link_to "Download (CSV)", csv_download_url, type: "text/csv", class: "govuk-!-margin-right-4" %> |
|
<% if @current_user.support? %> |
|
<%= govuk_link_to "Download (CSV, codes only)", csv_codes_only_download_url, type: "text/csv", class: "govuk-!-margin-right-4" %> |
|
<% end %> |
|
<% end %> |
|
</div> |
|
<div class="govuk-grid-column-one-quarter govuk-!-text-align-right"> |
|
<% if logs&.any? && (display_delete_logs?(@current_user, searched, filter_type) || in_organisations_tab?) %> |
|
<%= govuk_link_to "Delete logs", delete_logs_path, class: "app-!-colour-red" %> |
|
<% end %> |
|
</div> |
|
</div> |
|
</h2> |
|
<% logs.map do |log| %> |
|
<% if log.sales? %> |
|
<%= render SalesLogSummaryComponent.new(current_user:, log:) %> |
|
<% else %> |
|
<%= render LettingsLogSummaryComponent.new(current_user:, log:) %> |
|
<% end %> |
|
<% end %>
|
|
|