From 9601a87c541080fe71eff8e63ed3e5b8886d0c4d Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 24 May 2022 16:27:29 +0100 Subject: [PATCH] Add clear search link --- app/views/users/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 029b2cbec..60af1b84a 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -15,7 +15,7 @@ <% if @searched %> <% item_label = @pagy.count > 1 ? "users" : "user" %> - <%= @pagy.count %> <%= item_label %> found matching ‘<%= @searched %>’ of <%= User.count %> total users. + <%= @pagy.count %> <%= item_label %> found matching ‘<%= @searched %>’ of <%= User.count %> total users. <%= govuk_link_to("Clear search", request.path) %> <% else %> <%= @pagy.count %> total users. <% end %>