diff --git a/lib/towerops_web/controllers/error_html.ex b/lib/towerops_web/controllers/error_html.ex index 711eb49b..32410ef5 100644 --- a/lib/towerops_web/controllers/error_html.ex +++ b/lib/towerops_web/controllers/error_html.ex @@ -6,18 +6,10 @@ defmodule ToweropsWeb.ErrorHTML do """ use ToweropsWeb, :html - # If you want to customize your error pages, - # uncomment the embed_templates/1 call below - # and add pages to the error directory: - # - # * lib/towerops_web/controllers/error_html/404.html.heex - # * lib/towerops_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 - # "Not Found". + # For any error codes we don't have custom templates for, + # render a plain text page based on the template name. def render(template, _assigns) do Phoenix.Controller.status_message_from_template(template) end diff --git a/lib/towerops_web/controllers/error_html/404.html.heex b/lib/towerops_web/controllers/error_html/404.html.heex new file mode 100644 index 00000000..134e68ba --- /dev/null +++ b/lib/towerops_web/controllers/error_html/404.html.heex @@ -0,0 +1,45 @@ + + +
+ + +
+
+
+
+ + The page you're looking for could not be found. +
+ + + + Go back home + +
+
+
+ + We're working on fixing the problem. Please try again later. +
+ + + + Go back home + +