diff --git a/templates/common/navbar.html b/templates/common/navbar.html index 48f1f38..3d909ca 100644 --- a/templates/common/navbar.html +++ b/templates/common/navbar.html @@ -15,7 +15,8 @@ class="item" th:href="${menuItem.status.href}" th:target="${menuItem.spec.target?.value}" - th:title="${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}"> + th:with="desc = ${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}" + th:title="${#strings.isEmpty(desc) ? menuItem.status.displayName : desc}"> [[${menuItem.status.displayName}]] @@ -25,7 +26,8 @@ + th:with="desc = ${#annotations.getOrDefault(menuItem, 'desc', menuItem.status.displayName)}" + th:title="${#strings.isEmpty(desc) ? menuItem.status.displayName : desc}"> [[${menuItem.status.displayName}]] @@ -37,7 +39,8 @@ + th:with="desc = ${#annotations.getOrDefault(dropdown, 'desc', dropdown.status.displayName)}" + th:title="${#strings.isEmpty(desc) ? dropdown.status.displayName : desc}"> [[${dropdown.status.displayName}]] @@ -47,7 +50,8 @@ + th:with="desc = ${#annotations.getOrDefault(dropdownChild, 'desc', dropdownChild.status.displayName)}" + th:title="${#strings.isEmpty(desc) ? dropdownChild.status.displayName : desc}"> [[${dropdownChild.status.displayName}]]