philomena/lib/philomena_web/templates/search/index.html.slime

12 lines
466 B
Text
Raw Normal View History

2019-11-15 16:40:10 +01:00
= cond do
- Enum.any?(@images) ->
2019-11-30 03:33:15 +01:00
= render PhilomenaWeb.ImageView, "index.html", conn: @conn, images: @images, route: fn p -> Routes.search_path(@conn, :index, p) end, scope: [q: @conn.params["q"], sf: @conn.params["sf"], sd: @conn.params["sd"]]
2019-11-15 16:40:10 +01:00
- assigns[:error] ->
p
' Oops, there was an error evaluating your query:
pre = assigns[:error]
- true ->
p
2019-11-18 15:14:26 +01:00
' No images found!
= render PhilomenaWeb.SearchView, "_form.html", conn: @conn