From 506099189f1040eb12802799d0d88a47f23fc1f8 Mon Sep 17 00:00:00 2001 From: Nebbie Zebbie Date: Wed, 27 May 2020 21:53:13 -0600 Subject: [PATCH] Make profile tag change pagination remember added param --- .../templates/profile/tag_change/index.html.slime | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/profile/tag_change/index.html.slime b/lib/philomena_web/templates/profile/tag_change/index.html.slime index c1ac7e14..97331e05 100644 --- a/lib/philomena_web/templates/profile/tag_change/index.html.slime +++ b/lib/philomena_web/templates/profile/tag_change/index.html.slime @@ -4,7 +4,7 @@ h1 = @user.name - route = fn p -> Routes.profile_tag_change_path(@conn, :index, @user, 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.profile_tag_change_path(@conn, :index, @user, added: 1) = link "All", to: Routes.profile_tag_change_path(@conn, :index, @user) - = 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