mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-29 06:47:44 +01:00
fixes #133, preserve gallery search params across pagination
This commit is contained in:
parent
c885d1dd6b
commit
fac13fcf92
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
elixir:
|
elixir:
|
||||||
route = fn p -> Routes.gallery_path(@conn, :index, p) end
|
route = fn p -> Routes.gallery_path(@conn, :index, p) end
|
||||||
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @galleries, route: route
|
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @galleries, route: route, params: [gallery: @conn.params["gallery"]]
|
||||||
|
|
||||||
.column-layout
|
.column-layout
|
||||||
.column-layout__left
|
.column-layout__left
|
||||||
|
|
|
@ -24,4 +24,4 @@
|
||||||
|
|
||||||
= if not last_page?(@page) do
|
= if not last_page?(@page) do
|
||||||
= link("Next ›", to: next_page_path(@page, @route, params), class: "js-next")
|
= link("Next ›", to: next_page_path(@page, @route, params), class: "js-next")
|
||||||
= link("Last »", to: last_page_path(@page, @route, params))
|
= link("Last »", to: last_page_path(@page, @route, params))
|
||||||
|
|
Loading…
Add table
Reference in a new issue