Sha256: 6e7a5e644d239ad9cd1b558cb2b99a9e2e3ee76de72e87cec112142613adb90a

Contents?: true

Size: 806 Bytes

Versions: 4

Compression:

Stored size: 806 Bytes

Contents

<% if flash.count > 0 %>
<div id="flashes" class="<%= container_class %>">
<% if Voltron.config.flash.group %>
  <% flash.each do |type,messages| %>
  <div class="flash <%= type %>">
    <p class="flash-message"><%= Array.wrap(messages).join("<br />").html_safe %></p>
    <button class="flash-close" type="button" id="close-<%= type %>" data-dispatch="flash:click/close_flash"></button>
  </div>
  <% end %>
<% else %>
  <% flash.each do |type,messages| %>
    <% Array.wrap(messages).each do |message| %>
    <div class="flash <%= type %>">
      <p class="flash-message"><%= message.html_safe %></p>
      <button class="flash-close" type="button" id="close-<%= type %>" data-dispatch="flash:click/close_flash"></button>
    </div>
    <% end %>
  <% end %>
<% end %>
</div>
<% end %>
<% flash.clear %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
voltron-flash-0.1.6 app/views/voltron/flash/flashes.html.erb
voltron-flash-0.1.8 app/views/voltron/flash/flashes.html.erb
voltron-flash-0.1.5 app/views/voltron/flash.html.erb
voltron-flash-0.1.7 app/views/voltron/flash/flashes.html.erb