summaryrefslogtreecommitdiff
path: root/app/views/layouts/_messages.html.haml
blob: a3bbbac71c060651782e14bb190e3abb520e468f (plain)
1
2
3
4
5
- 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, format_flash(msg), :id => "flash_#{name}"