a11yist/app/views/layouts/_flash.html.erb
2024-09-22 21:57:05 +02:00

16 lines
435 B
Text

<% if flash[:alert] || flash[:notice] %>
<div class="container-fluid mt-3 mb-3">
<% if flash[:alert] %>
<div class="alert alert-danger" role="alert">
<%= flash[:alert] %><% flash.delete(:alert) %>
</div>
<% end %>
<% if flash[:notice] %>
<div class="alert alert-info" role="alert">
<%= flash[:notice] %>
<% flash.delete(:notice) %>
</div>
<% end %>
</div>
<% end %>