diff --git a/lib/philomena_web/templates/search/index.html.slime b/lib/philomena_web/templates/search/index.html.slime index 5f5c52c1..7bc09ceb 100644 --- a/lib/philomena_web/templates/search/index.html.slime +++ b/lib/philomena_web/templates/search/index.html.slime @@ -3,8 +3,8 @@ = 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] -> - p - ' Oops, there was an error evaluating your query: + .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"]) -> @@ -14,4 +14,4 @@ p ' No images found! -= render PhilomenaWeb.SearchView, "_form.html", conn: @conn \ No newline at end of file += render PhilomenaWeb.SearchView, "_form.html", conn: @conn diff --git a/lib/philomena_web/templates/tag/index.html.slime b/lib/philomena_web/templates/tag/index.html.slime index f331038f..605dfa9b 100644 --- a/lib/philomena_web/templates/tag/index.html.slime +++ b/lib/philomena_web/templates/tag/index.html.slime @@ -28,8 +28,8 @@ h2 Search Results = render PhilomenaWeb.PaginationView, "_pagination_info.html", page: @tags - assigns[:error] -> - p - ' Oops, there was an error evaluating your query: + .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] - true ->