a11yist/app/views/layouts/_flash.html.erb

15 lines
362 B
Text
Raw Permalink Normal View History

<% if flash[:alert] || flash[:notice] %>
2024-10-26 02:32:44 +02:00
<% if flash[:alert] %>
<div class="alert alert-danger" role="alert">
<%= flash[:alert] %><% flash.delete(:alert) %>
</div>
<% end %>
2024-10-26 02:32:44 +02:00
<% if flash[:notice] %>
<div class="alert alert-info" role="alert">
<%= flash[:notice] %>
<% flash.delete(:notice) %>
</div>
<% end %>
<% end %>