philomena/lib/philomena_web/templates/search/index.html.slime
2024-04-08 12:46:54 -04:00

17 lines
652 B
Text

= cond do
- Enum.any?(@images) or override_display(@tags) ->
= 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] ->
.block.block--fixed.block--danger
' Oops, there was an error parsing your query! Check for mistakes like mismatched parentheses. The error was:
pre = assigns[:error]
- blank?(@conn.params["q"]) ->
/ Don't render anything.
- true ->
p
' No images found!
= render PhilomenaWeb.SearchView, "_form.html", conn: @conn