 (defn content [state]
   (let [{:keys [id permission]} @state
         url                     (str (session/get :site-url) (path-for (str "/badge/info/" id)))]
-    
     (cond
       (= "success" permission) (success-view state)
       (= "error" permission)   (error-view state)

            [: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))
        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"}
