Fix query preserving where it's actually used (staff)

This commit is contained in:
Nebbie Zebbie 2020-02-21 02:32:08 +00:00
parent 4ff514b4d6
commit 3cbd80abc8
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
- route = fn p -> Routes.admin_report_path(@conn, :index, p) end - route = fn p -> Routes.admin_report_path(@conn, :index, p) end
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", route: route, page: @reports, conn: @conn - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", route: route, page: @reports, conn: @conn, params: [rq: @conn.params["rq"]]
h1 Reports h1 Reports
@ -32,4 +32,4 @@ h1 Reports
label for="rq" label for="rq"
' Searchable fields: id, created_at, reason, state, open, user, user_id, admin, admin_id, ip, fingerprint, reportable_type, reportable_id, image_id ' Searchable fields: id, created_at, reason, state, open, user, user_id, admin, admin_id, ip, fingerprint, reportable_type, reportable_id, image_id
br br
' Report reason is used if you don't specify a field. ' Report reason is used if you don't specify a field.

View file

@ -3,7 +3,7 @@ h1 Your Reports
.block__header .block__header
span.block__header__title Reports span.block__header__title Reports
- route = fn p -> Routes.report_path(@conn, :index, p) end - route = fn p -> Routes.report_path(@conn, :index, p) end
= render PhilomenaWeb.PaginationView, "_pagination.html", page: @reports, route: route, conn: @conn, params: [rq: @conn.params["rq"]] = render PhilomenaWeb.PaginationView, "_pagination.html", page: @reports, route: route, conn: @conn
.block__content .block__content
table.table table.table