osem-fcy/app/views/layouts/_messages.html.haml

5 lines
226 B
Text
Raw Normal View History

2013-01-07 09:04:09 +01:00
- flash.each do |name, msg|
- if msg.is_a?(String)
%div{:class => "alert alert-#{name == :notice ? "success" : "error"}"}
%a.close{"data-dismiss" => "alert"} ×
= content_tag :div, msg, :id => "flash_#{name}"