 
                  :else
                  {:button (get-button :participate event)
-                        :money price}
+                  :money price}
                  )
 
       "in-progress" (if (core/participated? uname name date)

    [ombs.view.actions :as actions]
    ))

(h/defsnippet action "../resources/public/action.html" [:.action] [{:keys [money button]} match]
  [:.money] (partial content-wrap money)
  [:button] button)


  [:.event] (h/set-attr :id id)
  [:.name]   (h/content (str author "'s " name))
  [:.date]   (h/content (str date))
  [:.action] (partial action (get-action event))
  )

(defn get-button [button-type {:keys [name price date author status parts]}]
  (println button-type)
  (case button-type
    :pay          actions/pay
    :start        actions/start
    :participate  actions/participate
    :finished     (partial content-wrap "Finished")
    )
  )

(defn get-action [{:keys [name price date author status parts] :as event}]
  "Return hashmap with function for money and button"
  (if-let [uname (sess/get :username)]
    (case status
      "initial" (cond
