                                    [:div.icons.col-xs-12 {:style {:min-height "15px" :padding "0px"}}
                                     [:div.visibility-icon.inline
                                      ;(if metabadge-icon-fn [:div.pull-right [metabadge-icon-fn id]])
-                                     (when (or (pos? user_endorsements_count) (pos? endorsement_count)) [:span.badge-view [:i.fa.fa-handshake-o]])
-
-                                     ]]
+                                     (when (or (pos? user_endorsements_count) (pos? endorsement_count)) [:span.badge-view [:i.fa.fa-handshake-o]])]]
+
+
                                    [:div.media-left
                                     (if image_file  [:img {:src (str "/" image_file) :alt name}])
                                     [:div.media-body
                                      [:div.media-heading name]
-                                     [:div.media-issuer [:p issuer_content_name]]]
-                                    ]]]]
+                                     [:div.media-issuer [:p issuer_content_name]]]]]]]
+
 
        (= "gallery" badge-type) [:div
                                  [:a {:href "#" :on-click #(mo/open-modal [:gallery :badges] {:badge-id badge_id})

                                   [:div.media-heading
                                    [:p.heading-link name]]
                                   [:div.media-issuer
                                    [:p issuer_content_name]]]
                                  ]])

       (= "profile" badge-type) [:div
                                 [:a {:href "#" :on-click #(mo/open-modal [:badge :info] {:badge-id id})}

                                                                                                                       (if (clojure.string/includes? (str js/window.location.href) (path-for (str "/badge?id=" id)))
                                                                                                                         (.replaceState js/history {} "Badge modal" (path-for "/badge"))
                                                                                                                         (navigate-to (current-route-path)))
                                                                                                                       (init-data state)))}))}

                                  [:div.icons
                                   [:div.visibility-icon.inline
                                    (case visibility
