Sha256: 719b168bd5cf18b644197d0a8cc026e3c385a40b847a9538deebbd4257ff56de

Contents?: true

Size: 477 Bytes

Versions: 106

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

106 entries across 54 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-5.0.1 app/views/_flash_msg.html.erb
hyrax-5.0.0 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-5.0.0 app/views/_flash_msg.html.erb
hyrax-5.0.0.rc3 app/views/_flash_msg.html.erb
hyrax-5.0.0.rc3 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-5.0.0.rc2 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-5.0.0.rc2 app/views/_flash_msg.html.erb
hyrax-5.0.0.rc1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-5.0.0.rc1 app/views/_flash_msg.html.erb
hyrax-3.6.0 app/views/_flash_msg.html.erb
hyrax-3.6.0 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-4.0.0 app/views/_flash_msg.html.erb
hyrax-4.0.0 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-4.0.0.rc3 app/views/_flash_msg.html.erb
hyrax-4.0.0.rc3 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-4.0.0.rc2 app/views/_flash_msg.html.erb
hyrax-4.0.0.rc2 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-4.0.0.rc1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-4.0.0.rc1 app/views/_flash_msg.html.erb