 
 ;; END Ввод элементов из справочника
 ;;..................................................................................................
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-


(defn images-gallery-1 [app own]
  (reify
    om/IInitState
    (init-state [_]
      {:i 0})
    om/IWillReceiveProps
    (will-receive-props [_ next-props]
      (om/set-state! own :i 0))
    om/IRenderState
    (render-state [_ {:keys [i]}]
      (if (empty? @app)
        (dom/h2 nil "Изображений нет")
        (dom/div
         #js {}
         (dom/b #js {:style #js {:fontSize "26px"}} "Изображение " (inc i) " из " (count @app))
         (dom/div #js {:className "btn-group" :style #js {:float "right"}}
                  (ui-button {:type     :default
                              :size     :lg
                              :on-click (fn [_]
                                          (om/update-state!
                                           own :i
                                           #(let [i (dec %)]
                                              (if (< i 0) (dec (count @app)) i)))
                                          1)
                              :text     (dom/span nil
                                                  (dom/span #js {:className   "glyphicon glyphicon-chevron-left"
                                                                 :aria-hidden "true"}))
                              })
                  (ui-button {:type     :default
                              :size     :lg
                              :on-click (fn [_]
                                          (om/update-state!
                                           own :i
                                           #(let [i (inc %)]
                                              (if (= i (count @app)) 0  i)))
                                          1)
                              :text     (dom/span nil
                                                  (dom/span #js {:className   "glyphicon glyphicon-chevron-right"
                                                                 :aria-hidden "true"}))
                              }))
         (dom/br nil)
         (dom/br nil)
         (dom/div
          #js {:className "thumbnail"}
          (dom/img #js {:className ""
                        :src       (get-in @app [i :path] "")}))
         (dom/h2 nil (get-in @app [i :top_description] ""))
         (dom/p nil (get-in @app [i :description] "")))))))

;; END Thumbs
;;..................................................................................................

           (dom/div #js {:style #js {:position "fixed" :left 0 :top 0 :zIndex 3005}}
                    (dom/button #js {:className "close"
                                     :onClick   #(om/transact! app :zoom? not)}
                                (ui-glyphicon (if zoom? "zoom-out" "zoom-in") "" "3em"))
                    (dom/button #js {:className "close"
                                     :onClick   #(om/transact!
                                                  app :deg (fn [deg]
