diff --git a/lib/cannery_web/templates/layout/app.html.eex b/lib/cannery_web/templates/layout/app.html.eex index 615ab8f..6979921 100644 --- a/lib/cannery_web/templates/layout/app.html.eex +++ b/lib/cannery_web/templates/layout/app.html.eex @@ -1,7 +1,9 @@
<%= render "topbar.html", assigns %> +
+
<%= if get_flash(@conn, :info) do %> <% end %> - +
<%= @inner_content %>
diff --git a/lib/cannery_web/templates/layout/live.html.leex b/lib/cannery_web/templates/layout/live.html.leex index c886d89..efd084d 100644 --- a/lib/cannery_web/templates/layout/live.html.leex +++ b/lib/cannery_web/templates/layout/live.html.leex @@ -1,5 +1,21 @@
- <%= live_component CanneryWeb.Live.Component.Topbar, current_user: assigns[:current_user] %> +
+ <%= live_component CanneryWeb.Live.Component.Topbar, current_user: assigns[:current_user] %> + +
+ <%= if live_flash(@flash, :info) do %> + + <% end %> + + <%= if live_flash(@flash, :error) do %> + + <% end %> +
+
<%= @inner_content %>