Make tag change pagination remember added param

This commit is contained in:
Nebbie Zebbie 2020-01-07 22:26:54 +00:00
parent d362304d2d
commit 9c45046669

View file

@ -4,7 +4,7 @@ h1
= @tag.name = @tag.name
- route = fn p -> Routes.tag_tag_change_path(@conn, :index, @tag, p) end - 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
.block__header .block__header
@ -15,4 +15,4 @@ h1
= link "Added", to: Routes.tag_tag_change_path(@conn, :index, @tag, added: 1) = link "Added", to: Routes.tag_tag_change_path(@conn, :index, @tag, added: 1)
= link "All", to: Routes.tag_tag_change_path(@conn, :index, @tag) = link "All", to: Routes.tag_tag_change_path(@conn, :index, @tag)
= render PhilomenaWeb.TagChangeView, "index.html", conn: @conn, tag_changes: @tag_changes, pagination: pagination = render PhilomenaWeb.TagChangeView, "index.html", conn: @conn, tag_changes: @tag_changes, pagination: pagination