From d56c5f2caa211cde7402a755653a8d1bcbeb04fa Mon Sep 17 00:00:00 2001 From: Nebbie Zebbie Date: Tue, 7 Apr 2020 02:57:34 +0000 Subject: [PATCH] Prepopulate default dupe report states selection in pagination --- lib/philomena_web/templates/duplicate_report/index.html.slime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/duplicate_report/index.html.slime b/lib/philomena_web/templates/duplicate_report/index.html.slime index e9cbfcfb..18e26927 100644 --- a/lib/philomena_web/templates/duplicate_report/index.html.slime +++ b/lib/philomena_web/templates/duplicate_report/index.html.slime @@ -1,7 +1,7 @@ h1 Duplicate Reports - route = fn p -> Routes.duplicate_report_path(@conn, :index, p) end -- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @duplicate_reports, route: route, conn: @conn, params: [states: @conn.params["states"]] +- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @duplicate_reports, route: route, conn: @conn, params: [states: @conn.params["states"] || ["open", "claimed"]] .block .block__header