                          :status "false"}]
 
     (ajax/GET
-     (path-for (str "/obpv1/user/profile/" user-id) true)
-     {:handler (fn [data]
-                 (reset! state (assoc data :user-id user-id
-                                      :show-link-or-embed-code nil
-                                      :permission "success"
-                                      :badge-small-view false
-                                      :reporttool reporttool-init)))}
-     (fn [] (swap! state assoc :permission "error")))))
+      (path-for (str "/obpv1/user/profile/" user-id) true)
+      {:handler (fn [data]
+                  (reset! state (assoc data :user-id user-id
+                                  :show-link-or-embed-code nil
+                                  :permission "success"
+                                  :badge-small-view false
+                                  :reporttool reporttool-init)))}
+      (fn [] (swap! state assoc :permission "error")))))
 
 (defn handler [site-navi params]
   (let [user-id (:user-id params)


(defn toggle-visibility [visibility-atom]
  (ajax/POST
     (path-for "/obpv1/user/profile/set_visibility")
     {:params  {:visibility (if (= "internal" @visibility-atom) "public" "internal")}
      :handler (fn [new-value]
                 (reset! visibility-atom new-value)
                 )}))

(defn profile-visibility-input [visibility-atom]
  [:div.col-xs-12

      [:div.row.flip
       [:div {:class "col-md-3 col-sm-3 col-xs-12"}
        [:div.profile-picture-wrapper
         [:img.profile-picture {:src (profile-picture profile_picture)
                                :alt fullname}]]]
       [:div {:class "col-md-9 col-sm-9 col-xs-12"}
        (if (not-empty about)
          [:div {:class "row about"}
