                                 :verifying false
                                 :display "none"
                                 :style "success")))}))
-(defn code-helper [v]
-  (case v
-    200 "ok"
-    800 "not provided"
-    v
-    ))
 
 (defn bottom-links [state]
   [:div
    [:div
-    [:a.link {:href     "#"
+    [:a.link {:style {:float "right" :padding-bottom "5px"}
+              :href     "#"
               :on-click #(do (.preventDefault %)
                            (if (= (:display @state) "none") (swap! state assoc :display "block") (swap! state assoc :display "none"))
                            )} (if (= (:display @state) "none") (str (t :badge/Openassertion) "...") (str (t :badge/Hideassertion) "..."))]
-    [:a {:style {:float "right"} :href (str "https://badgecheck.io/?url="(:asr @state)) :target "_blank" :rel "nofollow noopener"} "use external validator"]]
+    #_[:a {:style {:float "right"} :href (str "https://badgecheck.io/?url="(:asr @state)) :target "_blank" :rel "nofollow noopener"} "use external validator"]]
    [:div {:style {:display (:display @state) :padding-top "30px"}}
     [a/assertion-content (dissoc (:assertion @state) :evidence)]]])
 

            [salava.core.helper :refer [dump]]
            [salava.badge.ui.helper :as bh]
            [salava.badge.ui.assertion :as a]
            [clojure.string :refer [blank?]]
            [salava.core.time :refer [date-from-unix-time unix-time unix-time]]
            ))


           [:i {:class "fa fa-cog fa-spin fa-2x "}]
           [:span (str (t :core/Loading) "...")]]
          [:div {:style {:padding-top "20px"}}

           (case assertion-status
             410  [:div
                   [:div {:class "revoked"}(str (t :badge/Badge) " " (t :badge/Revoked))]
                   #_[:a {:target "_blank" :rel "nofollow noopener" :href (str "https://badgecheck.io/?url="asr) :style {:float "right"}} "use external validator"]]
             500 [:div
                  [:div {:class "revoked"}
                   (t :badge/Badgecheckfailed)]
                  [:br]
                  [:p [:i message]]
                  #_[:a {:target "_blank" :rel "nofollow noopener" :href (str "https://badgecheck.io/?url="asr) :style {:float "right"}} "use external validator"]]
             [:div
              (cond
                revoked? [:div [:p {:class "revoked"} (str (t :badge/Badge) " " (t :badge/Revoked))] [:p revocation_reason]]
                expired? [:div [:p {:class "revoked"} (t :badge/Badgeisexpired)] [bottom-links state]]
                :else [:div
                       [:p.validation-header (t :badge/Badgecheckresult)]

                       [:p.validation-result  (t :badge/Assertionurl)"  " [:i {:class "fa fa-check-circle fa-lg"}]]
                       (if (= 200 badge-image-status)
                         [:p.validation-result (t :badge/Imageurl)"  " [:i {:class "fa fa-check-circle fa-lg test"}]])
                       (if (= 200 badge-criteria-status)
                         [:p.validation-result  (t :badge/Criteriaurl)"  " [:i {:class "fa fa-check-circle fa-lg"}]])
                       (if (= 200 badge-issuer-status)
                         [:p.validation-result (t :badge/Issuerurl)"  " [:i {:class "fa fa-check-circle fa-lg"}]])

                       [:div {:class "alert alert-success"} [:i {:class "fa fa-check-circle fa-lg"}] (t :badge/Validbadge)]
                       [bottom-links state]])
              ])])))))


