WIP:bulma:neu
[website] / dist / templates / layout.html
index a7743c2..bdc3046 100644 (file)
             <li th:fragment="submenu(submenu, parent, pos)"
                 th:each="entry : ${submenu}"
                 th:with="
-                    leaf=${pos >= len - 1},
-                    selected=${!leaf and crumbs.get(pos) == entry},
+                    childs=${entry == parent ? null : _childs.get(entry)},
+                    leaf=${pos == (len - 1) and (childs == null or childs.size() == 0)},
+                    child=${pos == len},
+                    selected=${!child 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)}
+                    sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)}
                     "
                 class="s sub"
-                th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or leaf} ? '' : ' off')">
+                th:class="'s' + (${childs} ? ' sub' : '') + (${selected or sibling or child} ? '' : ' off')">
               <a  href="../potemkin/fix-swf/overview.html"
                   th:if="${entry != parent}"
                   th:href="@{${entry}}"