                       :on-mouse-leave #(swap! local assoc :open false)}
       [:span (:fullname user)]
       [:img {:border "0"
-             :src (:avatar user)}]
+             :src (:photo user)}]
       (user-menu (:open @local))])))
 
 (def user

;; User Widget
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; FIXME this is a temporal
(def current-user (atom {:user/fullname "Cirilla"
                         :user/avatar "/images/favicon.png"}))
(def menu-open? (atom false))

(def ^:static user-l
  (as-> (l/in [:user]) $
    (l/focus-atom $ s/state)))

(defn user-render

;; Register
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; (rum/defc register-form < rum/static
;;   []
;;   [:div.login-content
;;    [:input.input-text
;;      {:name "name"
;;       :placeholder "Name"
;;       :type "text"}]
;;    [:input.input-text
;;      {:name "email"
;;       :placeholder "Email"
;;       :type "email"}]
;;    [:input.input-text
;;     {:name "password"
;;      :placeholder "Password"
;;      :type "password"}]
;;    [:input.btn-primary
;;     {:name "login"
;;      :value "Continue"
;;      :type "submit"
;;      :on-click #(r/go :dashboard/projects)}]
;;    [:div.login-links
;;     [:a
;;      {:on-click #(r/go :auth/login)}
;;      "You already have an account?"]]])

;; (rum/defc register < rum/static
;;   []
;;   [:div.login
;;    [:div.login-body
;;     [:a i/logo]
;;     (register-form)]])

;; (rum/defc recover-password-form < rum/static
;;   []
;;   [:div.login-content
;;    [:input.input-text
;;      {:name "email"
;;       :placeholder "Email"
;;       :type "email"}]
;;    [:input.btn-primary
;;     {:name "login"
;;      :value "Continue"
;;      :type "submit"
;;      :on-click #(r/go :dashboard/projects)}]
;;    [:div.login-links
;;     [:a
;;      {:on-click #(r/go :auth/login)}
;;      "You have remembered your password?"]
;;     [:a
;;      {:on-click #(r/go :auth/register)}
;;      "Don't have an account?"]]])

;; (rum/defc recover-password < rum/static
;;   []
;;   [:div.login
;;     [:div.login-body
;;      [:a i/logo]
;;      (recover-password-form)]])

