mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
prepopulate tq on tags pagination
This commit is contained in:
parent
9202d59ce9
commit
2c9b27aee0
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ h2 Search Results
|
||||||
= cond do
|
= cond do
|
||||||
- Enum.any?(@tags) ->
|
- Enum.any?(@tags) ->
|
||||||
- route = fn p -> Routes.tag_path(@conn, :index, p) end
|
- route = fn p -> Routes.tag_path(@conn, :index, p) end
|
||||||
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tags, route: route, params: [tq: @conn.params["tq"]]
|
- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tags, route: route, params: [tq: @conn.params["tq"] || "*"]
|
||||||
|
|
||||||
= render PhilomenaWeb.TagView, "_tag_list.html", tags: @tags, conn: @conn
|
= render PhilomenaWeb.TagView, "_tag_list.html", tags: @tags, conn: @conn
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue