         org.httpkit.server)
   (:gen-class))
 
+(def current-user "user2")
+
 (log/set-config! [:appenders :spit :enabled?] true)
 (log/set-config! [:shared-appender-config :spit-filename] (env :log-file-path))
 

                                       " Necessary: " (:recommendation/necessary recommendation) " Priority: " (:recommendation/priority recommendation)
                                       " Type: " (:media/type media)
                                       " media/id: " (:media/id media)))
  [:#complete] (if (not-all-backgrounds-completed? backgrounds) (html/set-attr :disabled "disabled") (html/set-attr :dummy "dummy"))
  [:.recommendation-backgrounds] (html/content (map background-media backgrounds))
  [:.recommendation-translations] (html/content (map translation-media translations)))


  (model/whole-user-data current-user)
)

(defn mark-as-completed
  ([recommendation]
   (log/info "user: " current-user "mark-as-completed recommendation:" recommendation)
   (model/mark-as-completed current-user recommendation)
   {:status 302
    :headers {"Location" "/"}
    :body ""})
  ([user recommendation]
   (log/info "user: " user "mark-as-completed recommendation:" recommendation)
   (model/mark-as-completed user recommendation)
   (response nil))
  )

;; End of view layer

(defroutes recommendation-routes
