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