parent
89166ad351
commit
39a183fa21
@ -0,0 +1,11 @@
|
|||||||
|
(ns wanijo.domain.user
|
||||||
|
(:require [wanijo.neo4j :as neo4j]))
|
||||||
|
|
||||||
|
(defn find! [ident]
|
||||||
|
(neo4j/query-rawdata!
|
||||||
|
:query
|
||||||
|
"MATCH (n:user)
|
||||||
|
WHERE n.ident = {ident}
|
||||||
|
RETURN n"
|
||||||
|
:alias "n"
|
||||||
|
:params {:ident ident}))
|
@ -1,5 +1,5 @@
|
|||||||
(ns wanijo.home.view
|
(ns wanijo.home.view
|
||||||
(:require [wanijo.view :as view]))
|
(:require [wanijo.view.page :as page]))
|
||||||
|
|
||||||
(defn root! [req]
|
(defn root! [req]
|
||||||
(view/layout! :session (:session req)))
|
(page/layout! :session (:session req)))
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
(ns wanijo.forms
|
(ns wanijo.view.forms
|
||||||
(:require [hiccup.form :as hform]
|
(:require [hiccup.form :as hform]
|
||||||
[clojure.spec.alpha :as spec]
|
[clojure.spec.alpha :as spec]
|
||||||
[wanijo.view :as view]))
|
[wanijo.view.page :as page]))
|
||||||
|
|
||||||
(defn spec-to-errmsg [label spec-key field-value]
|
(defn spec-to-errmsg [label spec-key field-value]
|
||||||
(view/flash-error
|
(page/flash-error
|
||||||
(map
|
(map
|
||||||
(fn [prob]
|
(fn [prob]
|
||||||
[:p
|
[:p
|
@ -1,6 +1,6 @@
|
|||||||
(ns wanijo.view
|
(ns wanijo.view.page
|
||||||
(:require [hiccup.page :refer [html5
|
(:require [hiccup.page :refer
|
||||||
include-css]]))
|
[html5 include-css]]))
|
||||||
|
|
||||||
(defn btnlink
|
(defn btnlink
|
||||||
([target caption]
|
([target caption]
|
Loading…
Reference in new issue