philomena/lib/philomena_web/templates/search/index.html.slime
2019-12-05 16:57:59 -05:00

12 lines
No EOL
421 B
Text

= cond do
- Enum.any?(@images) ->
= render PhilomenaWeb.ImageView, "index.html", conn: @conn, tags: @tags, images: @images, route: fn p -> Routes.search_path(@conn, :index, p) end, scope: scope(@conn)
- assigns[:error] ->
p
' Oops, there was an error evaluating your query:
pre = assigns[:error]
- true ->
p
' No images found!
= render PhilomenaWeb.SearchView, "_form.html", conn: @conn