mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Make profile tag change pagination remember added param
This commit is contained in:
parent
a2d9dcb51b
commit
506099189f
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ h1
|
||||||
= @user.name
|
= @user.name
|
||||||
|
|
||||||
- route = fn p -> Routes.profile_tag_change_path(@conn, :index, @user, p) end
|
- 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
|
||||||
.block__header
|
.block__header
|
||||||
|
@ -15,4 +15,4 @@ h1
|
||||||
= link "Added", to: Routes.profile_tag_change_path(@conn, :index, @user, added: 1)
|
= link "Added", to: Routes.profile_tag_change_path(@conn, :index, @user, added: 1)
|
||||||
= link "All", to: Routes.profile_tag_change_path(@conn, :index, @user)
|
= link "All", to: Routes.profile_tag_change_path(@conn, :index, @user)
|
||||||
|
|
||||||
= 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
|
||||||
|
|
Loading…
Reference in a new issue