scinote-web/app/views/shared/_flash_alerts.html.erb
2021-01-12 15:28:30 +01:00

11 lines
511 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>
<% end %>
</div>