From 2f44497b6206ad7b31e7444f52609cb3e56b8ab5 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 8 Nov 2012 21:01:12 +0100 Subject: added generic flash block --- app/views/layouts/_messages.html.haml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/views/layouts/_messages.html.haml (limited to 'app/views/layouts/_messages.html.haml') diff --git a/app/views/layouts/_messages.html.haml b/app/views/layouts/_messages.html.haml new file mode 100644 index 0000000..80e34d4 --- /dev/null +++ b/app/views/layouts/_messages.html.haml @@ -0,0 +1,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}" -- cgit v1.2.3