Add "Go back" link in admin verifications

It isn't very intuitive that this link points to the stats page, but
since it's the only page linking to it and there's no link pointing to
it in the admin navigation, I guess it's better than offering no clue at
all of the current whereabouts.
This commit is contained in:
Javi Martín
2021-03-31 19:51:57 +02:00
parent 5831f190ba
commit 74089d1feb
2 changed files with 3 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
<%= back_link_to admin_stats_path %>
<h2><%= t("admin.verifications.index.title") %></h2>
<%= render "admin/shared/user_search", url: search_admin_verifications_path %>

View File

@@ -9,6 +9,7 @@ describe "Incomplete verifications", :admin do
visit admin_verifications_path
expect(page).to have_link "Go back", href: admin_stats_path
expect(page).to have_content(incompletely_verified_user1.username)
expect(page).to have_content(incompletely_verified_user2.username)
expect(page).not_to have_content(never_tried_to_verify_user.username)