           [:div.heading_1
            [:i.fa.fa-certificate.icon]
            [:a {:href (path-for "/badge")} [:span.title "Badges"]]]
-          [application-button]; [:button.btn.button "Earn badges"]
+          (when-not (not-activated?)  [application-button]); [:button.btn.button "Earn badges"]
           [:div.content
            [:div.stats
             [:div.total-badges

                                                          (mo/open-modal [:badge :info] {:badge-id (:id badge )}))} [:img {:src (str "/" (:image_file badge)) :alt (:name badge) :title (:name badge)}]])
                      ) [:div] badges)
            ]
           [latest-earnable-badges]
           #_[:div.badges
              [:p.header (t :badge/Latestearnablebadges)]
              ;[earnable-badges state]
              ]
           ]
          ]]]])))

(defn explore-block [state]
  [:div.box.col-md-4

   [:div#box_1 {:class "row_2"}
    [:div.col-md-12.block
     [:div.row_2;.block-content

                                                   [:i.fa.fa-user.icon]
                                                   [:div.text
                                                    [:p.num (get-in @state [:gallery :profiles :all])]
                                                    [:p.desc (t :gallery/Profiles)]]]]]]]]]])

(defn user-connections-stats []
  (let [blocks (first (plugin-fun (session/get :plugins) "block" "userconnectionstats"))]
