scinote-web/app/views/shared/_flash_alerts.html.erb

12 lines
511 B
Plaintext
Raw Normal View History

2018-04-25 13:32:49 +08:00
<div id="notifications">
<% flash.each do |type, message| %>
<% next unless displayable_flash_type?(type) %>
<div id="alert-flash" class="alert <%= flash_alert_class(type) %> alert-dismissable alert-floating">
<span class="fas <%= flash_icon_class(type) %>"></span>
<span class="message"><%= sanitize_input(message) %></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
2018-04-25 13:32:49 +08:00
<% end %>
</div>