fix sorting, some styling

Josha von Gizycki 5 years ago
parent 5902dcdcfa
commit 51d17faadc

@ -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;
}

@ -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

Loading…
Cancel
Save