From 97a1c7ad431cb76d2131cd56a5839146c7ad2cbc Mon Sep 17 00:00:00 2001 From: Connor <brockcc1@cardiff.ac.uk> Date: Thu, 30 Nov 2023 13:02:26 +0000 Subject: [PATCH] Working thymeleaf list, removed the fragment for now and just iterated through the Java object List. Displays as intended. --- .../resources/templates/towns/trails/dragonstale/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/towns/trails/dragonstale/index.html b/src/main/resources/templates/towns/trails/dragonstale/index.html index 894df0b7..ea31dbbd 100644 --- a/src/main/resources/templates/towns/trails/dragonstale/index.html +++ b/src/main/resources/templates/towns/trails/dragonstale/index.html @@ -21,8 +21,9 @@ </div> <div class="centre"> - <ul> - <li th:insert="fragments/landmarkFrag.html :: landmarkList"></li> + <ul th:each="item : ${landmarksList}"> + <p th:text="${item.landmarkName}"></p> + <p th:text="${item.landmarkDescription}"></p> </ul> </div> -- GitLab