From af580a93e091f6de39517fff92252dbacee7c83f Mon Sep 17 00:00:00 2001 From: Kat Date: Mon, 23 Oct 2023 08:47:48 +0100 Subject: [PATCH] Correctly display delete logs for support --- app/views/logs/_log_list.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/logs/_log_list.html.erb b/app/views/logs/_log_list.html.erb index a7f5a08ef..74dde785d 100644 --- a/app/views/logs/_log_list.html.erb +++ b/app/views/logs/_log_list.html.erb @@ -10,7 +10,9 @@ <% end %>
-
+ <% if searched || applied_filters_count(@filter_type).positive? %> +
+ <% end %> <% 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 %>