%= 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 -> ~p"/search?#{p}" end, scope: scope(@conn)) %> <% assigns[:error] -> %>
<%= assigns[:error] %><% blank?(@conn.params["q"]) -> %> <% # Don't render anything. %> <% true -> %>
No images found!
<% end %> <%= render(PhilomenaWeb.SearchView, "_form.html", conn: @conn) %>