summaryrefslogtreecommitdiff
path: root/app/views/layouts/_messages.html.haml
blob: 18be54fad9b211901ee87112ada8c96b7978619a (plain)
1
2
3
4
5
6
#messages
  - flash.each do |name, msg|
    - if msg.is_a?(String)
      %div{:class => "alert alert-#{name == :notice ? "success" : name}"}
        %a.close{"data-dismiss" => "alert"} ×
        = content_tag :div, format_flash(msg), :id => "flash_#{name}"