mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
Prepopulate q on reports pagination
This commit is contained in:
parent
d69410d97e
commit
932eff86cd
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue