Mark flash messages as temporary
This commit is contained in:
parent
7d1b73ea93
commit
28886a1ba3
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue