Sha256: ae0b56cb67781ca8b9ab9ffa04a88e1206e7f90707d7a6c93184cd0d73f7089c

Contents?: true

Size: 486 Bytes

Versions: 8

Compression:

Stored size: 486 Bytes

Contents

<%#
# Flash Partial

This partial renders flash messages on every page.

## Relevant Helpers:

- `flash`:
  Returns a hash,
  where the keys are the type of flash (alert, error, notice, etc)
  and the values are the message to be displayed.
%>

<% if flash.any? %>
  <div class="flashes">
    <% flash.each do |key, value| -%>
      <% next unless value.respond_to?(:html_safe) %>
      <div class="flash flash-<%= key %>"><%= value.html_safe %></div>
    <% end -%>
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
administrate-1.0.0.beta3 app/views/administrate/application/_flashes.html.erb
administrate-1.0.0.beta2 app/views/administrate/application/_flashes.html.erb
administrate-1.0.0.beta1 app/views/administrate/application/_flashes.html.erb
administrate-0.20.1 app/views/administrate/application/_flashes.html.erb
administrate-0.20.0 app/views/administrate/application/_flashes.html.erb
administrate-0.19.0 app/views/administrate/application/_flashes.html.erb
administrate-0.18.0 app/views/administrate/application/_flashes.html.erb
administrate-0.17.0 app/views/administrate/application/_flashes.html.erb