Browse Source

Correctly display delete logs for support

pull/1999/head
Kat 3 years ago
parent
commit
af580a93e0
  1. 4
      app/views/logs/_log_list.html.erb

4
app/views/logs/_log_list.html.erb

@ -10,7 +10,9 @@
<% end %>
</div>
<div class="govuk-grid-column-one-quarter govuk-!-text-align-right">
<br>
<% if searched || applied_filters_count(@filter_type).positive? %>
<br>
<% 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 %>

Loading…
Cancel
Save