shift73k/lib/shift73k_web/templates/layout/app.html.heex

20 lines
597 B
Text
Raw Normal View History

2020-09-12 18:43:17 -04:00
<main role="main" class="container">
<%# phoenix flash alerts: %>
<div class="row justify-content-center">
2021-03-10 09:27:24 -05:00
<div class="col-md-12 col-lg-10 col-xxl-8 ">
2021-03-03 16:52:26 -05:00
<%= for {kind, class} <- alert_kinds() do %>
<%= if flash_content = get_flash(@conn, kind) do %>
<div class={"alert #{class} alert-dismissible fade show"} role="alert">
<%= flash_content %>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<% end %>
<% end %>
</div>
</div>
2020-09-12 18:43:17 -04:00
<%= @inner_content %>
2020-09-12 18:43:17 -04:00
</main>