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

@@ -1,4 +1,4 @@
<div th:fragment="card" class="feature-card" th:id="${id}">
<div th:fragment="card" class="feature-card" th:id="${id}" th:if="${@endpointConfiguration.isEndpointEnabled(cardLink)}">
<a th:href="${cardLink}">
<div class="d-flex align-items-center"> <!-- Add a flex container to align the SVG and title -->
<img th:if="${svgPath}" id="card-icon" class="home-card-icon home-card-icon-colour" th:src="${svgPath}" alt="Icon" width="30" height="30">