Skip to content

Commit

Permalink
Gritter for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Grillot committed Dec 12, 2012
1 parent 37f7750 commit 7d5ef72
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/layouts/_messages.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- 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}"
-#
%div{:class => "alert alert-#{name == :notice ? "success" : "error"}"}
%a.close{"data-dismiss" => "alert"} ×
= content_tag :div, msg, :id => "flash_#{name}"
= js add_gritter(msg, :image => name == :notice ? "success" : "error", :title => name == :notice ? "Success" : "Error")

0 comments on commit 7d5ef72

Please sign in to comment.