From 9ecdc1111e3da388a750ace41a125287d9620534 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Tue, 25 Oct 2022 21:26:05 +0200 Subject: [PATCH] Polish Thymeleaf templates. Make sure we use the suggested fragment inclusion syntax. Use th:insert instead of th:include. Use simpler URI path segment templating to avoid duplication of expressions. Avoid trailing slashes in URIs creates as upcoming Spring Boot versions will not map the trailing slash flavors of defined URI mappings. --- src/main/resources/templates/fragments/layout.html | 10 +++++----- .../resources/templates/owners/ownerDetails.html | 12 ++++-------- src/main/resources/templates/owners/ownersList.html | 10 +++++----- src/main/resources/templates/vets/vetList.html | 10 +++++----- 4 files changed, 19 insertions(+), 23 deletions(-) diff --git a/src/main/resources/templates/fragments/layout.html b/src/main/resources/templates/fragments/layout.html index 8ab6deebe..5c8d391eb 100755 --- a/src/main/resources/templates/fragments/layout.html +++ b/src/main/resources/templates/fragments/layout.html @@ -45,23 +45,23 @@