     [:a {:href (path-for "/badge/mybadges")} (t :badge/Mybadges)]
     " " (t :badge/Importbadgesresults3) "."]])
 
-(defn content [state]
+(defn mozilla-importer-block [state]
   [:div {:class "import-badges"}
-   [m/modal-window]
    [:h1.uppercase-header (t :badge/Importfrom)]
    [import-info]
-   (not-activated-banner)
    [:div.import-button
     (if (:ajax-message @state)
       [:div.ajax-message

(ns salava.badge.ui.importer
  (:require [reagent.core :refer [atom]]
            [reagent-modals.modals :as m]
            [salava.core.ui.ajax-utils :as ajax]
            [salava.core.ui.layout :as layout]

   [badge-grid state]])


(defn content [state]
  (let [display-atom (cursor state [:display])]
    [:div {:class "import-badges"}
     [m/modal-window]
     (if  (not-activated?)
       (not-activated-banner)
       [:div
        [upload/badge-file-upload-content state]
        [:br]
        [:a {:style {:cursor "default"}
              :on-click #(do (.preventDefault %)
                          (if (identical? @display-atom "block") (reset! display-atom "none") (reset! display-atom "block")))}  (if (identical? @display-atom "none") (t :badge/Showmoreoptions) (t :badge/Hideoptions))]
        [:div {:style {:display @display-atom}}
         [upload/assertion-url-upload-content state]
         [mozilla-importer-block state]
         ]])]))


(defn init-data [state]
  (ajax/GET (path-for "/obpv1/user/public-access")
            {:handler (fn [data]
