- <% flash.each do |name, msg| %>
- <%
- alert_class = case name.to_sym
- when :error, :alert then 'alert-danger'
- when :success, :notice then 'alert-success'
- when :info then 'alert-info'
- when :warning then 'alert-warning'
- else 'alert-secondary'
- end
-
- icon_class = case name.to_sym
- when :error, :alert then 'bi-exclamation-circle-fill'
- when :success, :notice then 'bi-check-circle-fill'
- when :info then 'bi-info-circle-fill'
- when :warning then 'bi-exclamation-triangle-fill'
- else 'bi-bell-fill'
- end
- %>
-
- <% end %>
-