 
 (defcomponent select-deployment [{:keys [deployments deployment]} owner]
   (render [_] 
-          (dom/div 
-            "Some deployment: "
+          (dom/div
             (b/toolbar {}
                        (apply (partial b/dropdown {:bs-style "primary" 
                                                    :title (or (:id deployment) 

      (reify
        om/IRender
        (render [_]
          (dom/div 
            (om/build select-deployment app {})
            (dom/aside {}
                       (dom/nav (om/build job-selector (:deployment app) {}))
                       (dom/nav (om/build job-info (:deployment app) {}))
                       (dom/nav (om/build deployment-entries (:deployment app) {})))))))
    app-state
    {:target (. js/document (getElementById "app"))}))


(defcomponent catalog-view [catalog owner]
  (render [_]
          (dom/pre
           (om/build ankha/collection-view catalog {:opts {:open? true}}))))

(defcomponent job-info [{:keys [selected-job jobs]} owner]
  (render [_]
          (if-let [job (and selected-job jobs (jobs selected-job))]
            (dom/div
             (dom/pre
              (dom/div (str (om/value job))))
              (if-let [catalog (:catalog job)]
                (om/build catalog-view catalog {}))))))

