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">×</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