                                               (.preventDefault %)) } (str first_name " " last_name)]]
                   (if (= "pending" status)
                     [:td.action (accept owner_id state) " " (decline owner_id state)]
-                    [:td.action  (str(t :social/Follows)  " ") ])]))]])]))
+                    [:td.action  (str(t :social/Follows)  " ")])]))]])]))
 
 
 

                                                  (do
                                                    (init-data state)))
                               :error-handler   (fn [{:keys [status status-text]}]
                                                  (.log js/console (str status " " status-text))
                                                  )})} (t :social/Unfollow) ])


(defn accepted-user-connections [state users visible-area-atom]
  (let [panel-identity :accepted]
    [:div.panel
     [:div.panel-heading
      [:a {:href "#" :on-click #(do (.preventDefault %) (reset! visible-area-atom panel-identity))}
       [:h3
        (str (t :social/Followedusers) " (" (count users) ")")]]]
     (when (= panel-identity @visible-area-atom)
       [:div.panel-body
        [:table {:class "table" :summary (t :social/Followedusers)}

  (let [visible-area-atom (cursor state [:visible-area])
        followers-users     (cursor state [:followers-users])
        following-users    (cursor state [:following-users])]
    [:div {:id "badge-stats"}
     [m/modal-window]
     [:h1.uppercase-header (t :connections/UserConnections)]

     [:div {:style {:margin-bottom "10px"}} (t :connections/Userconnectionsinfo)]

     (when (seq @followers-users)
        (pending-user-connections state @followers-users visible-area-atom))
     (when (seq @following-users)
        (accepted-user-connections state @following-users visible-area-atom))]))

(defn init-stats [state]
  (init-data state)
