From 932eff86cdd03ff194cb6e45f1ef5af9300ca3a5 Mon Sep 17 00:00:00 2001 From: Nebbie Zebbie Date: Tue, 10 Mar 2020 22:55:15 +0000 Subject: [PATCH] Prepopulate q on reports pagination --- lib/philomena_web/templates/admin/user/index.html.slime | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/admin/user/index.html.slime b/lib/philomena_web/templates/admin/user/index.html.slime index 71402ec5..4529d771 100644 --- a/lib/philomena_web/templates/admin/user/index.html.slime +++ b/lib/philomena_web/templates/admin/user/index.html.slime @@ -10,7 +10,7 @@ h1 Users => link "2FA users", to: Routes.admin_user_path(@conn, :index, twofactor: 1) - route = fn p -> Routes.admin_user_path(@conn, :index, p) end -- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @users, route: route, conn: @conn, params: [q: @conn.params["q"]] +- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @users, route: route, conn: @conn, params: [q: @conn.params["q"] || "*"] .block .block__header @@ -39,7 +39,7 @@ h1 Users ' 2FA - user.role != "user" and !user.otp_required_for_login -> - span.banner__2fa.danger + span.banner__2fa.danger i.fas.fa-times> ' 2FA