2025-01-09 20:56:52 +00:00
|
|
|
<th:block th:fragment="navbarEntry(endpoint, toolIcon, titleKey, descKey, tagKey, toolGroup)"
|
2025-01-30 18:55:33 +00:00
|
|
|
th:if="${@endpointConfiguration.isEndpointEnabled(endpoint)}">
|
|
|
|
<a th:id="@{${endpoint}}" class="dropdown-item" style="position:relative" th:href="@{${endpoint}}"
|
|
|
|
th:data-bs-link="@{${endpoint}}"
|
2025-01-09 20:56:52 +00:00
|
|
|
th:classappend="${endpoint.equals(currentPage)} ? ${toolGroup} + ' active' : '' + ${toolGroup}"
|
2025-01-30 18:55:33 +00:00
|
|
|
th:data-bs-tags="#{${tagKey}}" th:data-bs-title='#{${titleKey}}'>
|
|
|
|
<div style="height:2.5rem;align-items: center;display: flex" th:title="#{${descKey}}" class="icon" alt="icon"
|
|
|
|
th:class="@{${toolGroup}}">
|
|
|
|
<svg class="nav-icon" style="height: 2.7rem; width:2.7rem; align-items:center; display: flex; justify-content: center;">
|
|
|
|
<use th:href="@{${toolIcon}}"></use>
|
2025-01-09 20:56:52 +00:00
|
|
|
</svg>
|
|
|
|
<span class="icon-text" th:text="#{${titleKey}}"></span>
|
|
|
|
</div>
|
2025-01-30 18:55:33 +00:00
|
|
|
<span class="material-symbols-rounded favorite-icon" style="display: none;" th:data-endpoint="@{${endpoint}}"
|
|
|
|
th:onclick="'addToFavorites(\'' + @{${endpoint}} + '\')'">
|
|
|
|
star
|
|
|
|
</span>
|
2025-01-09 20:56:52 +00:00
|
|
|
</a>
|
2025-01-30 18:55:33 +00:00
|
|
|
|
2025-01-09 20:56:52 +00:00
|
|
|
</th:block>
|