vidpush/app/views/application/_flashes.html.erb

13 lines
357 B
Plaintext
Raw Normal View History

<div class="container">
<section>
<div id="flash">
<% flash.each do |key, value| -%>
<% if flash[:notice] %>
<div id="flash_<%= key %>" class="alert alert-success"><%= value %></div>
<% else %>
<div id="flash_<%= key %>" class="alert alert-danger"><%= value %></div>
<% end %>
<% end -%>
</div>
</section>
</div>