         (center-vertically 
           [:div#left-panel [:h1#cititle "Continuous Integration" [:br] "made easy"]])
         (center-vertically
-          [:div#right-panel (if (session/get :signed-up) (youre-done) (signupform))])
+          [:div#right-panel (if (session/flash-get) (youre-done) (signupform))])
         [:div.clear]]]
 
     [:div#content_wrap

  (:use [circle.db :only (with-conn)])
  (:use [ring.util.response :only (redirect)])
  (:require [circle.model.beta-notify :as beta])
  (:require [noir.cookies :as cookies])
  (:require [noir.session :as session]))


(defpage [:post "/"] {:as request}
  (with-conn
    (let [session-key (cookies/get "ring-session")]
      (beta/insert {:email (:email request)
                   :contact (= "true" (:contact request))
                   :environment ""
                   :features ""
                   :session_key session-key})
      (session/put! :signed-up "1")
      (redirect "/"))))


(declare signupform youre-done)


(defpartial youre-done [& content]
  (do 
    [:div.move-right
      [:h2.blue-box "Thanks!" [:br] "We'll be in touch soon!"]]))

