stats and conditionals

This commit is contained in:
Anthony Stirling
2023-05-16 22:44:53 +01:00
parent a2926b8fe9
commit c2fec0a030
13 changed files with 420 additions and 115 deletions

View File

@@ -0,0 +1,6 @@
<div th:fragment="navbarEntry (endpoint, imgSrc, titleKey, descKey)" th:if="${@endpointConfiguration.isEndpointEnabled(endpoint)}">
<a class="dropdown-item" href="#" th:href="@{${endpoint}}" th:classappend="${endpoint.equals(currentPage)} ? 'active' : ''" th:title="#{${descKey}}">
<img class="icon" th:src="@{${imgSrc}}" alt="icon">
<span class="icon-text" th:text="#{${titleKey}}"></span>
</a>
</div>