Sha256: a62aa621d025b9713acf613688819a7d7a0a039860af824f62ad52b5567f726c

Contents?: true

Size: 500 Bytes

Versions: 29

Compression:

Stored size: 500 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), '<br/>'.html_safe) %>
    </div>
    <% flash.delete(type) %>
  <% end %>
<% end %>

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
hyrax-2.2.1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.2.0 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.1.0 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.1.0.rc4 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.1.0.rc3 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.1.0.rc2 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.1.0.rc1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-1.1.0 app/views/_flash_msg.html.erb
hyrax-2.1.0.beta2 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.0.2 app/views/_flash_msg.html.erb
hyrax-2.1.0.beta1 app/views/hyrax/dashboard/collections/_flash_msg.html.erb
hyrax-2.0.1 app/views/_flash_msg.html.erb
hyrax-2.0.0 app/views/_flash_msg.html.erb
hyrax-2.0.0.rc3 app/views/_flash_msg.html.erb
hyrax-2.0.0.rc2 app/views/_flash_msg.html.erb
hyrax-2.0.0.rc1 app/views/_flash_msg.html.erb
hyrax-1.0.5 app/views/_flash_msg.html.erb
hyrax-2.0.0.beta5 app/views/_flash_msg.html.erb
hyrax-2.0.0.beta4 app/views/_flash_msg.html.erb
hyrax-2.0.0.beta3 app/views/_flash_msg.html.erb