diff --git a/lib/cesium_link_web/controllers/error_html.ex b/lib/cesium_link_web/controllers/error_html.ex index 257de6e..38a2c08 100644 --- a/lib/cesium_link_web/controllers/error_html.ex +++ b/lib/cesium_link_web/controllers/error_html.ex @@ -13,7 +13,7 @@ defmodule CesiumLinkWeb.ErrorHTML do # * lib/cesium_link_web/controllers/error_html/404.html.heex # * lib/cesium_link_web/controllers/error_html/500.html.heex # - # embed_templates "error_html/*" + embed_templates "error_html/*" # The default is to render a plain text page based on # the template name. For example, "404.html" becomes diff --git a/lib/cesium_link_web/controllers/error_html/404.html.heex b/lib/cesium_link_web/controllers/error_html/404.html.heex new file mode 100644 index 0000000..20e0b7c --- /dev/null +++ b/lib/cesium_link_web/controllers/error_html/404.html.heex @@ -0,0 +1,25 @@ + + + + + + 404 + + + + +
+
+ + cesium-logo + +

+ 404 Page Not Found +

+

Oops! Looks like you are lost.

+

Click on the logo to return home

+
+
+ + diff --git a/test/cesium_link_web/controllers/error_html_test.exs b/test/cesium_link_web/controllers/error_html_test.exs index 2caddcf..f135a25 100644 --- a/test/cesium_link_web/controllers/error_html_test.exs +++ b/test/cesium_link_web/controllers/error_html_test.exs @@ -5,7 +5,7 @@ defmodule CesiumLinkWeb.ErrorHTMLTest do import Phoenix.Template test "renders 404.html" do - assert render_to_string(CesiumLinkWeb.ErrorHTML, "404", "html", []) == "Not Found" + assert render_to_string(CesiumLinkWeb.ErrorHTML, "404", "html", []) =~ "404 Page Not Found" end test "renders 500.html" do