Skip to content

Commit aa7646e

Browse files
authored
Add proper layouts to error page (#12)
1 parent 116d09f commit aa7646e

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

config/config.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ config :jola_dev, JolaDevWeb.Endpoint,
1313
adapter: Bandit.PhoenixAdapter,
1414
render_errors: [
1515
formats: [html: JolaDevWeb.ErrorHTML, json: JolaDevWeb.ErrorJSON],
16-
layout: false
16+
root_layout: {JolaDevWeb.Layouts, :root},
17+
layout: {JolaDevWeb.Layouts, :app}
1718
],
1819
pubsub_server: JolaDev.PubSub,
1920
live_view: [signing_salt: "LButKgfw"]

lib/jola_dev_web/components/layouts/app.html.heex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</header>
1111

1212
<main class="flex-grow">
13-
<.flash_group flash={@flash} />
1413
{@inner_content}
1514
</main>
1615

lib/jola_dev_web/controllers/error_html.ex

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ defmodule JolaDevWeb.ErrorHTML do
66
"""
77
use JolaDevWeb, :html
88

9-
# If you want to customize your error pages,
10-
# uncomment the embed_templates/1 call below
11-
# and add pages to the error directory:
12-
#
13-
# * lib/jola_dev_web/controllers/error_html/404.html.heex
14-
# * lib/jola_dev_web/controllers/error_html/500.html.heex
15-
#
169
embed_templates "error_html/*"
1710

1811
# The default is to render a plain text page based on

0 commit comments

Comments
 (0)