X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=dist%2Ftemplates%2Flayout.html;h=8b9f3daa3951d6e14e6f3d2f4b2e21f9c43f6ad0;hb=959e1127f66d3987ffb391e087649bd193f44db6;hp=b07be2bb722b91f7b8fb2341c34cc3b58b9e7586;hpb=ac9fc01775d01519cb46e265eebfc821846d1c4d;p=website diff --git a/dist/templates/layout.html b/dist/templates/layout.html index b07be2bb..8b9f3daa 100644 --- a/dist/templates/layout.html +++ b/dist/templates/layout.html @@ -45,6 +45,8 @@ th:with=" child=${pos == len}, selected=${!child and crumbs.get(pos) == entry}, + leaf=${pos >= (len - 1) and not selected}, + active=${entry == uri}, sibling=${pos + 1 == len and (_childs.get(uri) == null or uri == parent)}, childs=${entry == parent ? null : _childs.get(entry)} " @@ -54,7 +56,7 @@ 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