                              [:div.col-md-8.col-md-pull-4 [:div.media
                                                            [:div;.row
                                                             [:div.labels
-                                                             (if endorser_id
+                                                             (if issuer_id
                                                                [:span.label.label-success (t :badge/Endorsedyou)]
                                                                [:span.label.label-primary (t :badge/Youendorsed)])
                                                              (if (= "pending" status)
                                                                [:span.label.label-info
-                                                                (if endorser_id
+                                                                (if issuer_id
                                                                   (t :badge/pendingreceived)
                                                                   (t :badge/pendinggiven)
                                                                   )])]

         [:div#endorsebadge

          (reduce (fn [r endorsement]
                    (let [{:keys [id user_badge_id image_file name content first_name last_name profile_picture endorser_id status]} endorsement]
                      (conj r [:div.panel.panel-default.endorsement
                               [:div.panel-heading {:id (str "heading" id)}
                                [:div.panel-title

                       )}[:i.fa.fa-thumbs-o-up {:style {:vertical-align "unset"}}] (t :badge/Endorsethisbadge)]
     [:div {:style {:display @(cursor state [:show-endorsement-status])}} [:i.fa.fa-thumbs-up] (endorsement-text state)]]))

(defn profile-link-inline [id issuer_name picture]
  [:div [:a {:href "#"
             :on-click #(mo/open-modal [:user :profile] {:user-id id})}
         [:img {:src (profile-picture picture)}]
         (str issuer_name " ")]  (t :badge/Hasendorsedyou)])

(defn pending-endorsements []
  (let [state (atom {:user-id (-> (session/get :user) :id)})]
