|
|
|
@ -3,6 +3,16 @@
|
|
|
|
|
[hiccup.core :refer [h]]
|
|
|
|
|
[wanijo.infrastructure.routing :refer [path]]))
|
|
|
|
|
|
|
|
|
|
(defn breadcrumb [& links]
|
|
|
|
|
[:nav
|
|
|
|
|
[:ol.breadcrumb
|
|
|
|
|
(into
|
|
|
|
|
[:li.breadcrumb-item
|
|
|
|
|
[:a {:href (path :public-index)}
|
|
|
|
|
[:img {:src "/img/klammer.svg"}]
|
|
|
|
|
"Start"]]
|
|
|
|
|
links)]])
|
|
|
|
|
|
|
|
|
|
(defn layout [title content]
|
|
|
|
|
(html5
|
|
|
|
|
[:head
|
|
|
|
@ -30,13 +40,13 @@
|
|
|
|
|
[:menu.global-nav
|
|
|
|
|
[:ol.global-nav__card-nav
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc-roles {:coc "dev"})}
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc {:coc "dev"})}
|
|
|
|
|
"Development"]]
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc-roles {:coc "prk"})}
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc {:coc "prk"})}
|
|
|
|
|
"Projekte"]]
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc-roles {:coc "req"})}
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc {:coc "req"})}
|
|
|
|
|
"Req. Eng."]]]]
|
|
|
|
|
(into [:div.content] content)]]))
|
|
|
|
|
|
|
|
|
@ -82,11 +92,8 @@
|
|
|
|
|
{:coc (:key coc)
|
|
|
|
|
:level (:uuid level)})}
|
|
|
|
|
(h (:name level))]]])))]]]]
|
|
|
|
|
[:nav
|
|
|
|
|
[:ol.breadcrumb
|
|
|
|
|
[:li.breadcrumb-item
|
|
|
|
|
[:a {:href (path :public-index)} "Start"]]
|
|
|
|
|
[:li.breadcrumb-item.active (h (:name coc))]]]]))
|
|
|
|
|
(breadcrumb
|
|
|
|
|
[:li.breadcrumb-item.active (h (:name coc))])]))
|
|
|
|
|
|
|
|
|
|
(defn show-modules [coc level modules-with-comps]
|
|
|
|
|
(layout
|
|
|
|
@ -111,12 +118,9 @@
|
|
|
|
|
(for [compo (rest comps)]
|
|
|
|
|
[:tr
|
|
|
|
|
[:td (h (:name compo))]])))]]]]
|
|
|
|
|
[:nav
|
|
|
|
|
[:ol.breadcrumb
|
|
|
|
|
[:li.breadcrumb-item
|
|
|
|
|
[:a {:href (path :public-index)} "Start"]]
|
|
|
|
|
(breadcrumb
|
|
|
|
|
[:li.breadcrumb-item
|
|
|
|
|
[:a {:href (path :public-coc-roles
|
|
|
|
|
[:a {:href (path :public-coc
|
|
|
|
|
{:coc (:key coc)})}
|
|
|
|
|
(h (:name coc))]]
|
|
|
|
|
[:li.breadcrumb-item.active (h (:name level))]]]]))
|
|
|
|
|
[:li.breadcrumb-item.active (h (:name level))])]))
|
|
|
|
|