 
 (defn notifications-block [state]
   (let [events (->> (:events @state) (remove #(= (:verb %) "ticket")) (take 5))
+        admin-events (->> (:events @state) (filter #(= (:verb %) "ticket")))
         tips (:tips @state)]
     [:div {:class "box col-md-4"}
      [:div#box_1

             [:li (t :social/Notactivatedbody4)]
             [:li (t :social/Notactivatedbody5)]
             [:li (t :social/Notactivatedbody6)]]]]
          (reduce (fn [r event]
                    (conj r [:div.notification-div.ax_default
                             (cond
                               (and (= "badge" (:type event)) (= "follow" (:verb event))) (follow-event-badge event state)
                               (and (= "user" (:type event)) (= "follow" (:verb event))) (follow-event-user event state)
                               (and (= "badge" (:type event)) (= "publish" (:verb event))) (publish-event-badge event state)
                               (and (= "page" (:type event)) (= "publish" (:verb event))) (publish-event-page event state)
                               (= "advert" (:type event)) (badge-advert-event event state)
                               (= "message" (:verb event)) [message-event event state]
                               :else "")]))

                  [:div.content] events))]]]]))

(defn latest-earnable-badges []
  (let [block (first (plugin-fun (session/get :plugins)  "application" "latestearnablebadges"))]

            [salava.core.ui.notactivated :refer [not-activated-banner]]
            [salava.badge.ui.pending :as pb]
            [clojure.string :refer [blank?]]
            [dommy.core :as dommy :refer [has-class?] :refer-macros [sel sel1]]
            [salava.admin.ui.helper :refer [admin?]]))

(defn toggle-visibility [visibility-atom]
 (ajax/POST
