projects
/
website
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ac9fc01
)
WIP:bulma:neu
author
Kai Moritz
<kai@juplo.de>
Wed, 24 Feb 2021 16:36:24 +0000
(17:36 +0100)
committer
Kai Moritz
<kai@juplo.de>
Wed, 24 Feb 2021 16:36:24 +0000
(17:36 +0100)
dist/templates/layout.html
patch
|
blob
|
history
diff --git
a/dist/templates/layout.html
b/dist/templates/layout.html
index
b07be2b
..
213c933
100644
(file)
--- a/
dist/templates/layout.html
+++ b/
dist/templates/layout.html
@@
-43,18
+43,19
@@
<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="
- child=${pos == len},
- selected=${!child and crumbs.get(pos) == entry},
+ leaf=${pos == len - 1},
+ selected=${!leaf and crumbs.get(pos) == entry},
+ active=${entry == uri},
sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)},
childs=${entry == parent ? null : _childs.get(entry)}
"
class="s sub"
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')">
+ th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling} ? '' : ' off')">
<a href="../potemkin/fix-swf/overview.html"
th:if="${entry != parent}"
th:href="@{${entry}}"
class="s selected"
<a href="../potemkin/fix-swf/overview.html"
th:if="${entry != parent}"
th:href="@{${entry}}"
class="s selected"
- th:class="
${selected} ? 's selected' : 's'
"
+ th:class="
(${selected} ? 's selected' : 's') + ' len_' + ${len} + ' pos_' + ${pos} + ' leaf_' + ${leaf} + (${active} ? ' active' : '')
"
th:text="${_titles.get(entry)}">fix-swf</a>
<ul th:if="${selected and childs != null}"
class="s active"
th:text="${_titles.get(entry)}">fix-swf</a>
<ul th:if="${selected and childs != null}"
class="s active"