File tree Expand file tree Collapse file tree 3 files changed +235
-259
lines changed
Expand file tree Collapse file tree 3 files changed +235
-259
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11defmodule AlgoraWeb.ErrorHTML do
22 use AlgoraWeb , :html
3- alias AlgoraWeb.Component.NotFoundComponent
43
5- # If you want to customize your error pages,
6- # uncomment the embed_templates/1 call below
7- # and add pages to the error directory:
8- #
9- # * lib/algora_web/controllers/error_html/404.html.heex
10- # * lib/algora_web/controllers/error_html/500.html.heex
11- #
12- # embed_templates "error_html/*"
4+ embed_templates "error_html/*"
135
14- def render ( "404.html" , assigns ) do
15- NotFoundComponent . not_found ( assigns )
16- end
17-
18- # The default is to render a plain text page based on
19- # the template name. For example, "404.html" becomes
20- # "Not Found".
216 def render ( template , _assigns ) do
227 Phoenix.Controller . status_message_from_template ( template )
238 end
You can’t perform that action at this time.
0 commit comments