             [:div "The owner of the badge has set it private and therefore it can’t be shown."]]]]]])
 
 (defn success-view [state]
-  (let [{:keys [content permission]} @state
-        {:keys [id image_file name description issuer_content_name issuer_content_url recipients]} (first (filter  #(= (:language_code %) (:default_language_code %)) content))
+  (let [{:keys [id content permission]} @state
+        {:keys [image_file name description issuer_content_name issuer_content_url recipients]} (first (filter  #(= (:language_code %) (:default_language_code %)) content))
         url (str (session/get :site-url) (path-for (str "/badge/info/" id)))]
     [:div {:id "badge-gallery"}
      [:div {:id "grid"}

            name]]
          [:div.media-issuer
           issuer_content_name]
          
          
          [:div.media-description description]]]]
       [:div.media-bottom
        [:div {:class "pull-left"}



(defn handler [site-navi params]
  (let [id (:badge-id params)
        state (atom {:permission "initial"}) ]
    (init-data state id)
    (fn []
