planner/lib/planner_web/templates/layout/app.html.eex
2020-06-16 20:29:19 -07:00

15 lines
393 B
Elixir

<main role="main" class="container">
<%= if not is_nil(get_flash(@conn, :info)) do %>
<p class="notification is-info" role="alert">
<%= get_flash(@conn, :info) %>
</p>
<% end %>
<%= if not is_nil(get_flash(@conn, :error)) do %>
<p class="notification is-danger" role="alert">
<%= get_flash(@conn, :error) %>
</p>
<% end %>
<%= @inner_content %>
</main>