Sha256: d34d0f83558aa029d851e16d6907bc93142902f70d361fc62f345ead0e2bddfe

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 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>
      <%= safe_join(Array.wrap(flash[type]).map(&:html_safe), tag(:br)) %>
    </div>
    <% flash.delete(type) %>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyrax-2.2.1 app/views/_flash_msg.html.erb
hyrax-2.2.0 app/views/_flash_msg.html.erb
hyrax-2.1.0 app/views/_flash_msg.html.erb
hyrax-2.1.0.rc4 app/views/_flash_msg.html.erb
hyrax-2.1.0.rc3 app/views/_flash_msg.html.erb
hyrax-2.1.0.rc2 app/views/_flash_msg.html.erb
hyrax-2.1.0.rc1 app/views/_flash_msg.html.erb
hyrax-2.1.0.beta2 app/views/_flash_msg.html.erb
hyrax-2.1.0.beta1 app/views/_flash_msg.html.erb