Preserve query in reports search

This commit is contained in:
Nebbie Zebbie 2020-02-20 21:08:07 +00:00
parent 0b0ebc1745
commit 4ff514b4d6

View file

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