From 9ac6866860d737926bd75059d51126cf9f177b08 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Wed, 3 Sep 2025 13:14:39 -0400 Subject: [PATCH] Attempting to add some HEEx error pages --- .../controllers/error_html/404.html.heex | 30 +++++++++++++++++++ .../controllers/error_html/500.html.heex | 30 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 lib/sukaato_web/controllers/error_html/404.html.heex create mode 100644 lib/sukaato_web/controllers/error_html/500.html.heex diff --git a/lib/sukaato_web/controllers/error_html/404.html.heex b/lib/sukaato_web/controllers/error_html/404.html.heex new file mode 100644 index 0000000..4fe17a0 --- /dev/null +++ b/lib/sukaato_web/controllers/error_html/404.html.heex @@ -0,0 +1,30 @@ + +<% _rel_proj_root = "../../../.." %> + + <.html_head site_name={@config["site"]["name"]} site_author={@config["site"]["author"]} site_desc={@config["site"]["desc"]} /> + + + +
+
+ +
+
+

error_code error_label

+ +

+ + error_message

trace +
+

+
+
+
+
+
+ <.html_foot /> + + \ No newline at end of file diff --git a/lib/sukaato_web/controllers/error_html/500.html.heex b/lib/sukaato_web/controllers/error_html/500.html.heex new file mode 100644 index 0000000..4fe17a0 --- /dev/null +++ b/lib/sukaato_web/controllers/error_html/500.html.heex @@ -0,0 +1,30 @@ + +<% _rel_proj_root = "../../../.." %> + + <.html_head site_name={@config["site"]["name"]} site_author={@config["site"]["author"]} site_desc={@config["site"]["desc"]} /> + + + +
+
+ +
+
+

error_code error_label

+ +

+ + error_message

trace +
+

+
+
+
+
+
+ <.html_foot /> + + \ No newline at end of file