1 <% [[:error, :danger], [:warning, :warning], [:notice, :success]].each do |flash_type, bootstrap_type| %>
2 <% if flash[flash_type] %>
3 <%= tag.div :class => "alert alert-#{bootstrap_type} row mx-0 mb-0 p-3 rounded-0 align-items-center",
4 :data => { :turbo_temporary => true } do %>
9 <%= render_flash flash[flash_type] %>