mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-16 03:41:41 +00:00
10 lines
421 B
Text
10 lines
421 B
Text
<% if flash.keys.length > 0 %>
|
|
<div class="flash">
|
|
<% flash.each do |name, msg| %>
|
|
<div class="alert alert-<%= name.to_sym == :notice ? "success" : "danger" %> alert-dismissable">
|
|
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
|
<%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|