Sha256: 719b168bd5cf18b644197d0a8cc026e3c385a40b847a9538deebbd4257ff56de

Contents?: true

Size: 477 Bytes

Versions: 112

Compression:

Stored size: 477 Bytes

Contents

<% { notice: 'alert-success', error: 'alert-danger', alert: 'alert-warning' }.each do |type, flash_dom_class| %>
  <% if flash[type].present? %>
    <div class="alert <%= flash_dom_class %> alert-dismissable" role="alert">
      <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
      <%= sanitize Array.wrap(flash[type]).join(tag(:br)) %>
    </div>
    <% flash.delete(type) %>
  <% end %>
<% end %>

Version data entries

112 entries across 57 versions & 1 rubygems

Version Path
hyrax-2.3.1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.3.1 app/views/_flash_msg.html.erb
hyrax-1.1.1 app/views/_flash_msg.html.erb
hyrax-2.3.0 app/views/_flash_msg.html.erb
hyrax-2.3.0 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.0.3 app/views/_flash_msg.html.erb
hyrax-2.2.4 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.2.4 app/views/_flash_msg.html.erb
hyrax-2.2.3 app/views/_flash_msg.html.erb
hyrax-2.2.3 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.2.2 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.2.2 app/views/_flash_msg.html.erb