|
|
|
@ -5,74 +5,59 @@
|
|
|
|
|
|
|
|
|
|
(defn layout [content]
|
|
|
|
|
(html5
|
|
|
|
|
[:head
|
|
|
|
|
[:meta {:charset "utf-8"}]
|
|
|
|
|
[:meta {:name "viewport"
|
|
|
|
|
:content "width=device-width,initial-scale=1,shrink-to-fit=no"}]
|
|
|
|
|
[:title "Moxie!"]
|
|
|
|
|
(include-css "/css/bootstrap.min.css"
|
|
|
|
|
"/css/public.css")
|
|
|
|
|
(include-js "/js/bootstrap.min.js")]
|
|
|
|
|
[:body
|
|
|
|
|
[:nav.navbar.navbar-expand-lg.sticky-top
|
|
|
|
|
[:a.navbar-brand {:href (path :public-index)}
|
|
|
|
|
[:img.navbar__logo {:src "/img/trio-logo.svg"
|
|
|
|
|
:alt "logo"}]]
|
|
|
|
|
[:button.navbar-toggler {:type "button"
|
|
|
|
|
:data-toggle "collapse"
|
|
|
|
|
:data-target "#navbar-content"}
|
|
|
|
|
[:span.navbar-toggler-icon]]
|
|
|
|
|
[:div#navbar-content.collapse.navbar-collapse.text-right
|
|
|
|
|
[:div#navbar-nav.ml-auto
|
|
|
|
|
[:a {:href (path :auth-login)}
|
|
|
|
|
"Login"]]]]
|
|
|
|
|
[:div.container-fluid.super-container
|
|
|
|
|
[:menu.global-nav
|
|
|
|
|
[:ol.global-nav__card-nav
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[: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 {:coc "prk"})}
|
|
|
|
|
"Projekte"]]
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc {:coc "req"})}
|
|
|
|
|
"Req. Eng."]]]]
|
|
|
|
|
(into [:div.content] content)]]))
|
|
|
|
|
[:head
|
|
|
|
|
[:meta {:charset "utf-8"}]
|
|
|
|
|
[:meta {:name "viewport"
|
|
|
|
|
:content "width=device-width,initial-scale=1,shrink-to-fit=no"}]
|
|
|
|
|
[:title "Moxie!"]
|
|
|
|
|
(include-css "/css/bootstrap.min.css"
|
|
|
|
|
"/css/public.css")
|
|
|
|
|
(include-js "/js/bootstrap.min.js")]
|
|
|
|
|
[:body
|
|
|
|
|
[:nav.navbar.navbar-expand-lg.sticky-top
|
|
|
|
|
[:a.navbar-brand {:href (path :public-index)}
|
|
|
|
|
[:img.navbar__logo {:src "/img/trio-logo.svg"
|
|
|
|
|
:alt "logo"}]]
|
|
|
|
|
[:button.navbar-toggler {:type "button"
|
|
|
|
|
:data-toggle "collapse"
|
|
|
|
|
:data-target "#navbar-content"}
|
|
|
|
|
[:span.navbar-toggler-icon]]
|
|
|
|
|
[:div#navbar-content.collapse.navbar-collapse.text-right
|
|
|
|
|
[:div#navbar-nav.ml-auto
|
|
|
|
|
[:a {:href (path :auth-login)}
|
|
|
|
|
"Login"]]]]
|
|
|
|
|
[:div.container-fluid.super-container
|
|
|
|
|
[:menu.global-nav
|
|
|
|
|
[:ol.global-nav__card-nav
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[: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 {:coc "prk"})}
|
|
|
|
|
"Projekte"]]
|
|
|
|
|
[:li.global-nav__card-nav-item
|
|
|
|
|
[:a.global-nav__link {:href (path :public-coc {:coc "req"})}
|
|
|
|
|
"Req. Eng."]]]]
|
|
|
|
|
(into [:main.main] content)]]))
|
|
|
|
|
|
|
|
|
|
(defn index []
|
|
|
|
|
(layout
|
|
|
|
|
[[:main.main
|
|
|
|
|
[:h1 "Schön, dass du da bist!"]
|
|
|
|
|
[[:h1 "Schön, dass du da bist!"]
|
|
|
|
|
[:h2 "Willkommen auf der TRIO-Wissensplattform"]
|
|
|
|
|
[:p "Hier findest du das gesammelte Wissen unserer Kollegen."]
|
|
|
|
|
[:p "Schau dich um. Vermisst du etwas? Dann sprich mit deinem CoC!"]
|
|
|
|
|
[:p "Du möchtest dich weiterentwickeln?"
|
|
|
|
|
"Dann gestalte selbst deinen Weg bei der TRIO und sprich"
|
|
|
|
|
"deinen Vorgesetzten an"]]]))
|
|
|
|
|
"deinen Vorgesetzten an"]]))
|
|
|
|
|
|
|
|
|
|
(defn show-coc [coc roles-with-levels]
|
|
|
|
|
(defn show-coc [coc roles]
|
|
|
|
|
(layout
|
|
|
|
|
[[:main.main
|
|
|
|
|
[:h1 "CoC " (h (:name coc))]
|
|
|
|
|
[:table.table
|
|
|
|
|
[:thead
|
|
|
|
|
[:tr
|
|
|
|
|
[:th "Rolle"]
|
|
|
|
|
[:th "Erfahrungsstufe"]]]
|
|
|
|
|
[:tbody
|
|
|
|
|
(for [row roles-with-levels
|
|
|
|
|
:let [{:keys [role levels]} row
|
|
|
|
|
rest-levels (rest levels)]]
|
|
|
|
|
(list
|
|
|
|
|
[:tr
|
|
|
|
|
[:td {:rowspan (max 1 (count levels))} (h (:name role))]
|
|
|
|
|
[:td (h (-> levels first :name))]]
|
|
|
|
|
(for [level rest-levels]
|
|
|
|
|
[:tr
|
|
|
|
|
[:td (h (:name level))]])))]]]
|
|
|
|
|
[:nav
|
|
|
|
|
[:ol.breadcrumb
|
|
|
|
|
[:li.breadcrumb-item
|
|
|
|
|
[:a {:href (path :public-index)} "Start"]]
|
|
|
|
|
[:li.breadcrumb-item.active (h (:name coc))]]]]))
|
|
|
|
|
[[:h1 "CoC " coc]
|
|
|
|
|
[:table.table
|
|
|
|
|
[:thead
|
|
|
|
|
[:tr
|
|
|
|
|
[:th "Name"]]]
|
|
|
|
|
[:tbody
|
|
|
|
|
(for [role roles]
|
|
|
|
|
[:tr
|
|
|
|
|
[:td (h (:name role))]])]]]))
|
|
|
|
|