mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 22:39:50 +08:00
init project
This commit is contained in:
20
app/views/shared/_flash_notice.html.erb
Normal file
20
app/views/shared/_flash_notice.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<% flash.each do |k, v| %>
|
||||
<% next unless %w(success danger warning info).include?(k.to_s) %>
|
||||
|
||||
<div class="alert alert-<%= k %> alert-dismissible fade show" role="alert">
|
||||
<%= v %>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<% end %>
|
||||
<% flash.now.as_json.each do |k, v| %>
|
||||
<% next unless %w(success danger warning info).include?(k.to_s) %>
|
||||
|
||||
<div class="alert alert-<%= k %> alert-dismissible fade show" role="alert">
|
||||
<%= v %>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user