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

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