              [:div.instruction "Choose a GitHub account that you are a member of or have access to."]]
             [:div.organizations
              [:h4 "Your accounts"]
-             (map (fn [org] (side-item org settings owner))
+             (map (fn [org] (organization org settings owner))
                    (:organizations user))
-             (map (fn [org] (side-item org settings owner))
+             (map (fn [org] (organization org settings owner))
                    (filter (fn [org] (= (:login user) (:login org)))
                            (:collaborators user)))
               [:div
                [:h4 "Users & organizations who have made pull requests to your repos"]
-               (map (fn [org] (side-item org settings owner))
+               (map (fn [org] (organization org settings owner))
                     (remove (fn [org] (= (:login user) (:login org)))
                             (:collaborators user)))]]])))))
 

        [:img {:src (gh-utils/make-avatar-url org :size 50)
               :height 50}]]]
      [:div.other-stuff
       [:div.orgname 
        [:a {:on-click #(raise! owner [:selected-add-projects-org {:login login :type type}])} login]
         [:small.github-url.pull-right
                 [:a {:href (str "https://github.com/" login), :target "_blank"}
                  [:i.fa.fa-github-alt ""]]]]]]]))

(defn org-sidebar [data owner]
  (reify
    om/IDidMount
    (did-mount [_]
      (utils/tooltip "#collaborators-tooltip-hack" {:placement "right"}))

                     (string/join "and " missing-scopes)
                     (if (< 1 (count missing-scopes)) "scope" "scopes"))]]])

(defn organization [org settings owner]
  (let [login (:login org)
        type (if (:org org) :org :user)]
    [:div.organization {:class (when (= {:login login :type type} (get-in settings [:add-projects :selected-org])) "active")}
