summaryrefslogtreecommitdiff
path: root/app/views/layouts/_messages.html.haml
blob: 80e34d462040f6429aa9c29813bbf5a3737e30b6 (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, msg, :id => "flash_#{name}"