projects
/
website
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0470ad3
)
WIP:bulma:neu
author
Kai Moritz
<kai@juplo.de>
Thu, 25 Feb 2021 16:16:51 +0000
(17:16 +0100)
committer
Kai Moritz
<kai@juplo.de>
Thu, 25 Feb 2021 16:16:51 +0000
(17:16 +0100)
dist/templates/layout.html
patch
|
blob
|
history
diff --git
a/dist/templates/layout.html
b/dist/templates/layout.html
index
00c1c73
..
8b9f3da
100644
(file)
--- a/
dist/templates/layout.html
+++ b/
dist/templates/layout.html
@@
-43,12
+43,12
@@
<li th:fragment="submenu(submenu, parent, pos)"
th:each="entry : ${submenu}"
th:with="
<li th:fragment="submenu(submenu, parent, pos)"
th:each="entry : ${submenu}"
th:with="
- childs=${entry == parent ? null : _childs.get(entry)},
- leaf=${pos >= (len - 1)},
child=${pos == len},
selected=${!child and crumbs.get(pos) == entry},
child=${pos == len},
selected=${!child and crumbs.get(pos) == entry},
+ leaf=${pos >= (len - 1) and not selected},
active=${entry == uri},
active=${entry == uri},
- sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)}
+ sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)},
+ childs=${entry == parent ? null : _childs.get(entry)}
"
class="s sub"
th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or child} ? '' : ' off')">
"
class="s sub"
th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or child} ? '' : ' off')">