bones73k/lib/bones73k_web/templates/layout/live.html.leex

18 lines
588 B
Text
Raw Normal View History

2020-09-12 18:43:17 -04:00
<main role="main" class="container">
<%# liveview flash alerts: %>
<div class="container">
2021-02-26 12:10:00 -05:00
<%= for {kind, color} <- alert_kinds() do %>
<%= if flash_content = live_flash(@flash, kind) do %>
2021-02-26 12:10:00 -05:00
<div class="alert alert-<%= color %> alert-dismissible fade show" role="alert" id="lv-alert-<%= kind %>" phx-hook="AlertRemover" data-key="<%= kind %>">
<%= flash_content %>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<% end %>
<% end %>
</div>
2020-09-12 18:43:17 -04:00
<%= @inner_content %>
2020-09-12 18:43:17 -04:00
</main>