diff --git a/resources/public/css/public.css b/resources/public/css/public.css index a8fd1d3..fab672b 100644 --- a/resources/public/css/public.css +++ b/resources/public/css/public.css @@ -215,3 +215,14 @@ table [data-sort="asc"]::after { .module-desc h3 { font-size: 1.5rem; } + +.module-desc h4 { + font-size: 1.3rem; +} + +.module-desc blockquote { + padding: 1rem .5rem 0 1rem; + background-color: rgba(230, 230, 230, .5); + border: 1px solid transparent; + border-radius: 2rem; +} diff --git a/src/wanijo/public/db.clj b/src/wanijo/public/db.clj index cbfdb37..730d1f1 100644 --- a/src/wanijo/public/db.clj +++ b/src/wanijo/public/db.clj @@ -130,7 +130,15 @@ (module:instance)-[:of]->(mschema), (level)--(:link)--(module) RETURN module, level - ORDER BY level, module") + ORDER BY CASE + WHEN level.name =~ \".*Foundation.*\" THEN + 1 + WHEN level.name =~ \".*Professional.*\" THEN + 2 + ELSE + 3 + END, + module.name") (defn modules-and-levels! [role-uuid] (neo4j/exec-query! modules-and-levels {:role_uuid role-uuid