Mark flash messages as temporary

This commit is contained in:
Anton Khorev 2024-09-10 12:24:08 +03:00
parent 7d1b73ea93
commit 28886a1ba3

View file

@ -1,6 +1,7 @@
<% [[:error, :danger], [:warning, :warning], [:notice, :success]].each do |flash_type, bootstrap_type| %>
<% if flash[flash_type] %>
<%= tag.div :class => "alert alert-#{bootstrap_type} row mx-0 mb-0 p-3 rounded-0 align-items-center" do %>
<%= tag.div :class => "alert alert-#{bootstrap_type} row mx-0 mb-0 p-3 rounded-0 align-items-center",
:data => { :turbo_temporary => true } do %>
<div class="col-auto">
<%= notice_svg_tag %>
</div>