mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
feat(search): force display dnp entries even if found no images (#223)
This commit is contained in:
parent
3714ae115c
commit
cc32f5d3b9
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
= cond do
|
||||
- Enum.any?(@images) ->
|
||||
- Enum.any?(@images) or Enum.any?(@tags, &Enum.any?(elem(&1, 0).dnp_entries)) ->
|
||||
= render PhilomenaWeb.ImageView, "index.html", conn: @conn, tags: @tags, images: @images, header: "Searching for #{@conn.params["q"]}", route: fn p -> Routes.search_path(@conn, :index, p) end, scope: scope(@conn)
|
||||
|
||||
- assigns[:error] ->
|
||||
|
|
Loading…
Reference in a new issue