Sha256: 15e4cc721a0b13f1b2fa09857d02fb50af9b85666daa62180cd65d61f580aa2f

Contents?: true

Size: 581 Bytes

Versions: 16

Compression:

Stored size: 581 Bytes

Contents

<div class="flash_messages">
  <% [:success, :notice, :error, :alert].each do |type| %>
    <%- alert_class = case type
      when :success then "alert-success"
      when :notice  then "alert-info"
      when :alert   then "alert-warning"
      when :error   then "alert-danger"
      else "alert-#{type}"
      end
    -%>
    <% if flash[type] %>
      <% Array(flash[type]).each do |f| %>
        <div class="alert <%= alert_class %>"><%= f %>
          <a class="close" data-dismiss="alert" href="#">&times;</a>
        </div>
      <% end %>
    <% end %>
  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-7.11.1 app/views/shared/_flash_msg.html.erb
blacklight-7.10.0 app/views/shared/_flash_msg.html.erb
blacklight-7.9.0 app/views/shared/_flash_msg.html.erb
blacklight-7.8.1 app/views/shared/_flash_msg.html.erb
blacklight-7.8.0 app/views/shared/_flash_msg.html.erb
blacklight-7.7.0 app/views/shared/_flash_msg.html.erb
blacklight-7.6.0 app/views/shared/_flash_msg.html.erb
blacklight-7.5.1 app/views/shared/_flash_msg.html.erb
blacklight-7.5.0 app/views/shared/_flash_msg.html.erb
blacklight-7.4.2 app/views/shared/_flash_msg.html.erb
blacklight-7.4.1 app/views/shared/_flash_msg.html.erb
blacklight-7.4.0 app/views/shared/_flash_msg.html.erb
blacklight-7.3.0 app/views/shared/_flash_msg.html.erb
blacklight-7.2.0 app/views/shared/_flash_msg.html.erb
blacklight-7.1.0 app/views/shared/_flash_msg.html.erb
blacklight-7.1.0.alpha app/views/shared/_flash_msg.html.erb