      [:div.orgname login]
      (cond
        ;; TODO remove the nil check after a migration adds vcs-type to all entities
-       (contains? #{"github" nil} vcs-type)
+       (vcs-github? org)
        [:a.visit-org {:href (str (gh-utils/http-endpoint) "/" login)
                       :target "_blank"}
         [:i.octicon.octicon-mark-github]]
 
-       (= "bitbucket" vcs-type)
+       (vcs-bitbucket? org)
        [:a.visit-org
         [:i.fa.fa-bitbucket]])]))
 

            [frontend.components.forms :refer [managed-button]]
            [frontend.config :as config]
            [frontend.datetime :as datetime]
            [frontend.models.organization :as organization]
            [frontend.models.repo :as repo-model]
            [frontend.models.user :as user-model]


(def view "add-projects")

(defn vcs-github? [item] (contains? #{"github" nil} (:vcs_type item)))
(defn vcs-bitbucket? [item] (= "bitbucket" (:vcs_type item)))

(defn missing-scopes-notice [current-scopes missing-scopes]
  [:div
   [:div.alert.alert-error
