                                                              (conj r [:a {:href (path-for "/badge")} [:img {:src (str "/" (:image_file badge)) :alt (:name badge) :title (:name badge)}]])
                                                              ) [:div] (take 5 (:pending-badges @state)))
                                                    )])
-           [:div.badges
-            [:p.header (t :social/Lastestearnedbadges)]
-            (reduce (fn [r badge]
-                      (conj r [:a {:href "#" :on-click #(do
-                                                          (.preventDefault %)
-                                                          (mo/open-modal [:badge :info] {:badge-id (:id badge )} {:hidden (fn [] (init-dashboard state))}))} [:img {:src (str "/" (:image_file badge)) :alt (:name badge) :title (:name badge)}]])
-                      ) [:div] badges)
-            ]
+           (if welcome-tip
+             [:div.pending [:p.header (str (t :social/Youdonthaveanyanybadgesyet) ".")]]
+             [:div.badges
+              [:p.header (t :social/Lastestearnedbadges)]
+              (reduce (fn [r badge]
+                        (conj r [:a {:href "#" :on-click #(do
+                                                            (.preventDefault %)
+                                                            (mo/open-modal [:badge :info] {:badge-id (:id badge )} {:hidden (fn [] (init-dashboard state))}))} [:img {:src (str "/" (:image_file badge)) :alt (:name badge) :title (:name badge)}]])
+                        ) [:div] badges)
+              ])
            [latest-earnable-badges]]]]]])))
 
 (defn explore-block [state]

            [salava.core.ui.notactivated :refer [not-activated-banner]]
            [salava.badge.ui.pending :as pb]))



(defn init-dashboard [state]
  (stream/init-data state)
  (pb/init-data state)
  (ajax/GET
    (path-for (str "/obpv1/user/dashboard"))
    {:handler (fn [data]



(defn handler [site-navi]
  (let [state (atom {:endorsing 0
                     :endorsers 0
                     :badges []
                     :pending-endorsements 0
                     :connections {:badges 0}
                     :pages_count 0
                     :files_count 0})]
    (init-dashboard state)
    (fn [] (layout/dashboard site-navi [content state]))))

