Sha256: cea68aee00788dfa6d2b471e7bf39e90c99255d518be08ed3bf198297e0f5d89
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 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="click"></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="click"></button> </div> <% end %> <% end %> <% end %> </div> <% end %> <% flash.clear %>
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voltron-flash-0.1.1 | app/views/voltron/flash.html.erb |
voltron-flash-0.1.1 | lib/generators/templates/app/views/voltron/flash.html.erb |