        [:h3 {:class "media-heading"}
         [:u (t (keyword (str "admin/" report_type)))]]
        [:h4 {:class "media-heading"}
-        [:a {:href item_url :target "_blank"}
-         (str (t (keyword (str "admin/" item_type))) " - " item_name)]]]
+        (if (= "badges" item_type)
+          [:a {:href "#" :on-click #(do (.preventDefault %)
+                         (open-admintool-modal "badges" (badge-id item_url) state init-data))}
+           (str (t (keyword (str "admin/" item_type))) " - " item_name)]
+          [:a {:href item_url :target "_blank"}
+           (str (t (keyword (str "admin/" item_type))) " - " item_name)])]]
       [:div.media-descriprtion
        [:div {:class "col-xs-12"  :id (if open? "" "closed")}
         [:div [:label (str (t :admin/Description) ": ")] " " (if (< 130 (count description)) [text-shorter description 130]   description) ]

            [salava.core.i18n :refer [t]]
            [salava.core.helper :refer [dump]]
            [salava.admin.ui.helper :refer [message-form email-select status-handler]]
            [salava.core.time :refer [date-from-unix-time]]))

(defn text-shorter [text length]
  (let [sorted-text (subs text 0 (min (count text) length))

                     :init-data init-data
                     :status ""})]
    (ajax/GET
      (path-for (str "/obpv1/admin/user/" user-id))
      {:handler (fn [data]
                  (do
                    (let [primary-email (first (filter #(:primary_address %) (get-in data [:info :emails])))]
                      (swap! state assoc :name (:name data)
                             :image_file (:image_file data)
                             :user (:item_owner data)
                             :user_id (:item_owner_id data)
                             :selected-email (:email primary-email)
                             :info (:info data))))
                  (m/modal! [ticket-modal state init-data]))})))

(defn badge-id [url]
  (second (split url #"/badgeview/")))


(defn ticket [ticket-data state]
