From 9c450466699c5dcf686e94b49d554d3ea6d80f20 Mon Sep 17 00:00:00 2001 From: Nebbie Zebbie Date: Tue, 7 Jan 2020 22:26:54 +0000 Subject: [PATCH] Make tag change pagination remember added param --- lib/philomena_web/templates/tag/tag_change/index.html.slime | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/tag/tag_change/index.html.slime b/lib/philomena_web/templates/tag/tag_change/index.html.slime index 2b4d8f62..e00fc64d 100644 --- a/lib/philomena_web/templates/tag/tag_change/index.html.slime +++ b/lib/philomena_web/templates/tag/tag_change/index.html.slime @@ -4,7 +4,7 @@ h1 = @tag.name - route = fn p -> Routes.tag_tag_change_path(@conn, :index, @tag, p) end -- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn +- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: [added: @conn.params["added"]] .block .block__header @@ -15,4 +15,4 @@ h1 = link "Added", to: Routes.tag_tag_change_path(@conn, :index, @tag, added: 1) = link "All", to: Routes.tag_tag_change_path(@conn, :index, @tag) - = render PhilomenaWeb.TagChangeView, "index.html", conn: @conn, tag_changes: @tag_changes, pagination: pagination \ No newline at end of file + = render PhilomenaWeb.TagChangeView, "index.html", conn: @conn, tag_changes: @tag_changes, pagination: pagination