mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Fix handling of the added query parameter everywhere
This commit is contained in:
parent
39ff35c089
commit
2c121c80c8
4 changed files with 8 additions and 4 deletions
|
@ -3,7 +3,8 @@ h1
|
||||||
= @fingerprint
|
= @fingerprint
|
||||||
|
|
||||||
- route = fn p -> Routes.fingerprint_profile_tag_change_path(@conn, :index, @fingerprint, p) end
|
- route = fn p -> Routes.fingerprint_profile_tag_change_path(@conn, :index, @fingerprint, p) end
|
||||||
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn
|
- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end
|
||||||
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params
|
||||||
|
|
||||||
.block
|
.block
|
||||||
.block__header
|
.block__header
|
||||||
|
|
|
@ -3,7 +3,8 @@ h1
|
||||||
= @ip
|
= @ip
|
||||||
|
|
||||||
- route = fn p -> Routes.ip_profile_tag_change_path(@conn, :index, to_string(@ip), p) end
|
- route = fn p -> Routes.ip_profile_tag_change_path(@conn, :index, to_string(@ip), p) end
|
||||||
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn
|
- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end
|
||||||
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params
|
||||||
|
|
||||||
.block
|
.block
|
||||||
.block__header
|
.block__header
|
||||||
|
|
|
@ -4,7 +4,8 @@ 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, params: [added: @conn.params["added"]]
|
- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end
|
||||||
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params
|
||||||
|
|
||||||
.block
|
.block
|
||||||
.block__header
|
.block__header
|
||||||
|
|
|
@ -4,7 +4,8 @@ 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, params: [added: @conn.params["added"]]
|
- params = if @conn.params["added"] do [added: @conn.params["added"]] else nil end
|
||||||
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tag_changes, route: route, conn: @conn, params: params
|
||||||
|
|
||||||
.block
|
.block
|
||||||
.block__header
|
.block__header
|
||||||
|
|
Loading…
Reference in a new issue