summaryrefslogtreecommitdiff
path: root/app/views/layouts/_messages.html.haml
blob: 3a2361e305b28e275a6cca6c7ecab96f63137b95 (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" : "error"}"}
        %a.close{"data-dismiss" => "alert"} ×
        = content_tag :div, format_flash(msg), :id => "flash_#{name}"