               (when-not org?
                 [:div.col-lg-6
                 (panel [:a {:href (format "/user2/%s/starred" (:login user))} (str "Starred " c-star) ]
-                  [:ul (for [star (:starred user-extras)] [:li [:a {:href (str "/p/" star)} star]])])])
+                  [:ul (for [star (take 10 (:starred user-extras))] 
+                    [:li [:a {:href (str "/p/" star)} star]])])])
               [:div.col-lg-6
               (panelx "User Repos" ["no-pad"]
-                [:table.table (for [repo user-repos]
-                  [:tbody
-                  [:tr
-                    [:td {:rowspan 2} [:span (:watchers repo)]]
-                    [:td
-                      [:a {:href (str "/p/" (:full_name repo))}
-                      (:full_name repo)
-                      [:span.label (:stars repo)]
-                      [:span.label (:forks repo)]
-                      ]]]
-                  [:tr
-                      [:td
-                      [:p.gray (:description repo)]]]])]
+                (render-repos user-repos)
                 )]]))))))
 
 (defn sync-user2

            [clojure.java.io              :as io]
            [cheshire.core                :refer :all]
            [ring.util.response           :as resp]
            [hsm.actions                  :as actions]
            [hsm.pipe.event               :as event-pipe]
            [hsm.views                    :refer [layout panel panelx]]

  [{:keys [db event-chan redis]} request])

(defn user2-starred
  [{:keys [db event-chan redis]} request]
  (let [id (id-of request)
        host (host-of request)
        user (actions/load-user2 db id)
        user-extras (actions/user-extras db id)
        admin? true
        is-json (type-of request :json)
        c-star (count (:starred user-extras))
        c-follow (count (:following user-extras))
        c-followers (count (:followers user-extras))
        org? (= (:type user) "Organization")]
    (if is-json
          (json-resp user)
          (layout host
              [:div.col-lg-3
                (user-part id user admin? c-star c-follow c-followers)]
              [:div.col-lg-9
              (when-not org?
                [:div.col-lg-6
                (panel [:a {:href (format "/user2/%s/starred" (:login user))} (str "Starred " c-star) ]
                  (render-repos (reverse (sort-by :watchers (actions/load-projects-by-id db (vec (:starred user-extras))))))
                  )])]))))

(defn user2-contrib
  [{:keys [db event-chan redis]} request])
