From 43d6acd868638af4bb7aaa2813cbbf1240e36a4b Mon Sep 17 00:00:00 2001
From: Gonzalo Rodriguez <gonzalo@wyeworks.com>
Date: Tue, 23 Aug 2011 00:51:00 -0300
Subject: [PATCH] Support green login page flash message for password change
 success

---
 app/views/sessions/new.haml              | 2 +-
 public/stylesheets/sass/application.sass | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/app/views/sessions/new.haml b/app/views/sessions/new.haml
index f5632ec69f..de4494f1ac 100644
--- a/app/views/sessions/new.haml
+++ b/app/views/sessions/new.haml
@@ -20,7 +20,7 @@
       = image_tag('logo_caps.png', :id => 'logo', :width => 98, :height => 14)
 
     - flash.each do |name, msg|
-      = content_tag :p, msg, :class => "login_error"
+      %p{:class => "login_#{name}"}= msg
 
     = form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
 
diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass
index 6014e0d3a2..f83c8058e1 100644
--- a/public/stylesheets/sass/application.sass
+++ b/public/stylesheets/sass/application.sass
@@ -97,10 +97,15 @@ form
   :text
     :shadow 0 1px #C66
 
-.login_error
+.login_error,
+.login_alert
   :color rgb(208,49,43)
   :text-shadow 1px 1px 20px rgb(208,49,43)
 
+.login_notice
+  :color rgb(10,150,10)
+  :text-shadow 1px 1px 20px rgb(126,240,77)
+
 .fieldWithErrors
   :display inline
 
-- 
GitLab