2022-02-05 16:22:02 -05:00
|
|
|
<main class="container min-w-full">
|
2021-09-10 00:35:36 -04:00
|
|
|
<header>
|
2022-02-01 01:08:18 -05:00
|
|
|
<CanneryWeb.Component.Topbar.topbar current_user={assigns[:current_user]}></CanneryWeb.Component.Topbar.topbar>
|
2022-02-07 17:36:44 -05:00
|
|
|
|
2021-09-10 00:35:36 -04:00
|
|
|
<div class="mx-8 my-2 flex flex-col space-y-4 text-center">
|
2022-02-07 17:36:44 -05:00
|
|
|
<%= if @flash && @flash |> Map.has_key?("info") do %>
|
2022-01-22 17:21:10 -05:00
|
|
|
<p class="alert alert-info" role="alert" phx-click="lv:clear-flash" phx-value-key="info">
|
2022-02-07 17:36:44 -05:00
|
|
|
<%= live_flash(@flash, "info") %>
|
2021-09-10 00:35:36 -04:00
|
|
|
</p>
|
|
|
|
<% end %>
|
2022-02-07 17:36:44 -05:00
|
|
|
|
|
|
|
<%= if @flash && @flash |> Map.has_key?("error") do %>
|
2022-01-22 17:21:10 -05:00
|
|
|
<p class="alert alert-danger" role="alert" phx-click="lv:clear-flash" phx-value-key="error">
|
2022-02-07 17:36:44 -05:00
|
|
|
<%= live_flash(@flash, "error") %>
|
2021-09-10 00:35:36 -04:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</header>
|
2022-02-07 17:36:44 -05:00
|
|
|
|
2021-03-11 21:12:55 -05:00
|
|
|
<%= @inner_content %>
|
|
|
|
</main>
|