From 9de857f4c2855cec3c5a059ebae42969c52dc231 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Wed, 15 Nov 2023 20:17:54 +0100 Subject: [PATCH] Remove duplicate title elements The title element should only be set by the layout template. --- src/main/resources/templates/customers.html | 1 - src/main/resources/templates/edit-customer.html | 3 +-- src/main/resources/templates/edit-staff.html | 1 - src/main/resources/templates/profile.html | 1 - src/main/resources/templates/staff.html | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/resources/templates/customers.html b/src/main/resources/templates/customers.html index f813f01..66cb83f 100644 --- a/src/main/resources/templates/customers.html +++ b/src/main/resources/templates/customers.html @@ -4,7 +4,6 @@ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout.html(title='Kunden')}"> -
diff --git a/src/main/resources/templates/edit-customer.html b/src/main/resources/templates/edit-customer.html index 3e8b1c9..ac8dd64 100644 --- a/src/main/resources/templates/edit-customer.html +++ b/src/main/resources/templates/edit-customer.html @@ -2,9 +2,8 @@ + layout:decorate="~{layout.html(title='Kunde bearbeiten')}"> - Kunde Bearbeiten
diff --git a/src/main/resources/templates/edit-staff.html b/src/main/resources/templates/edit-staff.html index e4be582..d424510 100644 --- a/src/main/resources/templates/edit-staff.html +++ b/src/main/resources/templates/edit-staff.html @@ -4,7 +4,6 @@ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout.html(title='Personal bearbeiten')}"> - Personal Bearbeiten
diff --git a/src/main/resources/templates/profile.html b/src/main/resources/templates/profile.html index a050fa1..c736367 100644 --- a/src/main/resources/templates/profile.html +++ b/src/main/resources/templates/profile.html @@ -4,7 +4,6 @@ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout.html(title='Profil')}"> - </head> <body> <div layout:fragment="content"> diff --git a/src/main/resources/templates/staff.html b/src/main/resources/templates/staff.html index ccb3c71..2296850 100644 --- a/src/main/resources/templates/staff.html +++ b/src/main/resources/templates/staff.html @@ -4,7 +4,6 @@ xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout.html(title='Angestellte')}"> <head> - <title th:text="${title}">