projects
/
website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP:bulma:neu
[website]
/
dist
/
templates
/
layout.html
diff --git
a/dist/templates/layout.html
b/dist/templates/layout.html
index
b07be2b
..
00c1c73
100644
(file)
--- a/
dist/templates/layout.html
+++ b/
dist/templates/layout.html
@@
-43,10
+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},
-
sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)
},
-
childs=${entry == parent ? null : _childs.get(entry
)}
+
active=${entry == uri
},
+
sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent
)}
"
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')">
@@
-54,7
+56,7
@@
th:if="${entry != parent}"
th:href="@{${entry}}"
class="s selected"
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"